1
0
mirror of https://github.com/angular/angular-cli.git synced 2025-05-20 21:42:38 +08:00

ci: configure codeql locally within the repo to allow for customization

Moving to the configuration being in the repo allows us to specify which specific rules are run in analysis.
This commit is contained in:
Joey Perrott 2025-01-31 15:09:02 +00:00 committed by Alan Agius
parent 9726cd084b
commit 09cb935efb

35
.github/workflows/codeql.yml vendored Normal file

@ -0,0 +1,35 @@
name: 'CodeQL'
on:
push:
branches: ['main', '*.*.x']
schedule:
- cron: '39 9 * * 1'
jobs:
analyze:
name: Analyze
runs-on: 'ubuntu-latest'
permissions:
security-events: write
packages: read
strategy:
fail-fast: false
matrix:
include:
- language: javascript-typescript
build-mode: none
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Initialize CodeQL
uses: github/codeql-action/init@1a7989f3955e0c69f0e0ccc14aee54a387a0fd31 #v3.28.8
with:
languages: javascript-typescript
build-mode: none
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@86b04fb0e47484f7282357688f21d5d0e32175fe #v3.28.8
with:
category: '/language:javascript-typescript'