File tree Expand file tree Collapse file tree 1 file changed +57
-0
lines changed
Expand file tree Collapse file tree 1 file changed +57
-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" ]
6+ pull_request :
7+ branches : [ "main" ]
8+ schedule :
9+ - cron : ' 16 0 * * 1'
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 : actions
26+ build-mode : none
27+ - language : c-cpp
28+ build-mode : manual # Use manual for C/C++
29+ - language : go
30+ build-mode : autobuild # Use autobuild for Go
31+
32+ steps :
33+ - name : Checkout repository
34+ uses : actions/checkout@v4
35+ with :
36+ fetch-depth : 0
37+
38+ - name : Initialize CodeQL
39+ uses : github/codeql-action/init@v3
40+ with :
41+ languages : ${{ matrix.language }}
42+ build-mode : ${{ matrix.build-mode }}
43+ queries : security-extended,security-and-quality # Removed '+' as it is unnecessary and unconventional
44+
45+ - name : Build (manual, for C/C++)
46+ if : matrix.language == 'c-cpp'
47+ # Run the build step only for C/C++ jobs
48+ run : |
49+ cd rapidyenc
50+ ./clone_rapidyenc.sh
51+ ./build_rapidyenc_linux-amd64.sh
52+
53+ - name : Perform CodeQL Analysis
54+ if : matrix.language != 'actions'
55+ uses : github/codeql-action/analyze@v3
56+ with :
57+ category : " /language:${{matrix.language}}"
You can’t perform that action at this time.
0 commit comments