File tree 1 file changed +52
-0
lines changed
1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : " CodeQL Security Checks"
2
+
3
+ on :
4
+ push :
5
+ branches : [ "develop", "main" ]
6
+ pull_request :
7
+ branches : [ "develop", "main" ]
8
+ schedule :
9
+ - cron : ' 31 7 * * 4'
10
+
11
+ jobs :
12
+ analyze :
13
+ name : Analyze (${{ matrix.language }})
14
+ runs-on : ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
15
+ permissions :
16
+ # required for all workflows
17
+ security-events : write
18
+
19
+ concurrency :
20
+ # Cancel any previously running CodeQL jobs for a PR when a new commit is pushed to the PR branch
21
+ group : ${{ github.workflow }}-${{ github.ref }}-${{ matrix.language }}
22
+ cancel-in-progress : true
23
+
24
+ strategy :
25
+ fail-fast : false
26
+ matrix :
27
+ include :
28
+ - language : swift
29
+ build-mode : manual
30
+
31
+ steps :
32
+ - name : Checkout repository
33
+ uses : actions/checkout@v4
34
+
35
+ - name : Switch to Xcode 16.1
36
+ run : sudo xcode-select -s /Applications/Xcode_16.1.app
37
+
38
+ - name : Initialize CodeQL
39
+ uses : github/codeql-action/init@main
40
+ with :
41
+ languages : ${{ matrix.language }}
42
+ build-mode : ${{ matrix.build-mode }}
43
+
44
+ - if : matrix.build-mode == 'manual'
45
+ shell : bash
46
+ run : |
47
+ xcodebuild -project Echo.xcodeproj -scheme Echo -configuration Debug CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | xcbeautify
48
+
49
+ - name : Perform CodeQL Analysis
50
+ uses : github/codeql-action/analyze@main
51
+ with :
52
+ category : " /language:${{matrix.language}}"
You can’t perform that action at this time.
0 commit comments