File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed
Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " CodeQL Advanced"
2+
3+ on :
4+ push :
5+ branches : [ "main", "dev", "demo" ]
6+ pull_request :
7+ branches : [ "main", "dev", "demo" ]
8+ schedule :
9+ - cron : ' 37 2 * * 5'
10+
11+ jobs :
12+ analyze :
13+ name : Analyze (${{ matrix.language }})
14+ runs-on : ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
15+ permissions :
16+ security-events : write
17+ packages : read
18+ actions : read
19+ contents : read
20+
21+ strategy :
22+ fail-fast : false
23+ matrix :
24+ include :
25+ - language : csharp
26+ build-mode : none
27+ - language : javascript-typescript
28+ build-mode : none
29+ # Additional languages can be added here
30+
31+ steps :
32+ - name : Checkout repository
33+ uses : actions/checkout@v4
34+
35+ - name : Initialize CodeQL
36+ uses : github/codeql-action/init@v3
37+ with :
38+ languages : ${{ matrix.language }}
39+ build-mode : ${{ matrix.build-mode }}
40+
41+ - if : matrix.build-mode == 'manual'
42+ shell : bash
43+ run : |
44+ echo 'If you are using a "manual" build mode for one or more of the languages you are analyzing, replace this with the commands to build your code.'
45+ exit 1
46+
47+ - name : Perform CodeQL Analysis
48+ uses : github/codeql-action/analyze@v3
49+ with :
50+ category : " /language:${{matrix.language}}"
You can’t perform that action at this time.
0 commit comments