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 : ' OGP CodeQL'
2+
3+ on :
4+ push :
5+ branches : [ 'master' ]
6+ pull_request :
7+ branches : [ 'master' ]
8+ schedule :
9+ - cron : ' 0 10 * * *'
10+
11+ jobs :
12+ analyze :
13+ name : Analyze (${{matrix.language}})
14+ runs-on : ${{(matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest'}}
15+ timeout-minutes : ${{(matrix.language == 'swift' && 120) || 360}}
16+ permissions :
17+ # Required for all workflows
18+ security-events : write
19+
20+ # Required to fetch internal or private CodeQL packs
21+ packages : read
22+
23+ # Only required for workflows in private repositories
24+ actions : read
25+ contents : read
26+
27+ strategy :
28+ fail-fast : false
29+ matrix :
30+ include :
31+ - language : javascript-typescript
32+ build-mode : none
33+ steps :
34+ - name : Checkout repository
35+ uses : actions/checkout@v4
36+
37+ # Initializes the CodeQL tools for scanning.
38+ - name : Initialize CodeQL
39+ uses : github/codeql-action/init@v3
40+ with :
41+ languages : ${{matrix.language}}
42+ build-mode : ${{matrix.build-mode}}
43+
44+ # Pull config from https://github.com/opengovsg/codeql-config/blob/prod/codeql-config.yml
45+ config-file : opengovsg/codeql-config/codeql-config.yml@prod
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