Repository navigation
56 lines (46 loc) · 1.43 KB
/
Copy pathci-codeql.yml
File metadata and controls
56 lines (46 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: CI / CodeQL
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
analyze:
runs-on: ubuntu-latest
permissions: &codeql_permissions
security-events: write
contents: read
strategy: &codeql_strategy
fail-fast: false
matrix:
language: [actions, javascript-typescript, python]
steps:
- &checkout_repository
name: Checkout repository
uses: actions/checkout@v5
- &initialize_codeql
name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
- &autobuild
name: Autobuild
uses: github/codeql-action/autobuild@v4
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
# Keep the pre-rename categories available while historical branch results
# still reference them. This can be removed after those stale analyses are
# retired from the repository's code-scanning history.
analyze_legacy:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
permissions: *codeql_permissions
strategy: *codeql_strategy
steps:
- *checkout_repository
- *initialize_codeql
- *autobuild
- name: Perform legacy CodeQL analysis
uses: github/codeql-action/analyze@v4
with:
category: .github/workflows/codeql.yml:analyze/language:${{ matrix.language }}