File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : " CodeQL"
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+
7+ pull_request :
8+ branches : [ "main" ]
9+
10+ schedule :
11+ - cron : " 00 14 * * 5"
12+
13+ jobs :
14+ analyze :
15+ name : Analyze (${{ matrix.language }})
16+ runs-on : ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
17+
18+ permissions :
19+ security-events : write
20+ packages : read
21+ actions : read
22+ contents : read
23+
24+ strategy :
25+ fail-fast : false
26+
27+ matrix :
28+ include :
29+ - language : actions
30+ build-mode : none
31+ - language : swift
32+ build-mode : manual
33+
34+ steps :
35+ - name : Checkout repository
36+ uses : actions/checkout@v4
37+ - name : Initialize CodeQL
38+ uses : github/codeql-action/init@v4
39+ with :
40+ languages : ${{ matrix.language }}
41+ build-mode : ${{ matrix.build-mode }}
42+ - name : Build Swift package
43+ if : matrix.language == 'swift'
44+ shell : bash
45+ run : |
46+ swift --version
47+ swift build --arch arm64
48+ - name : Perform CodeQL Analysis
49+ uses : github/codeql-action/analyze@v4
50+ with :
51+ category : " /language:${{ matrix.language }}"
You can’t perform that action at this time.
0 commit comments