File tree Expand file tree Collapse file tree 1 file changed +27
-20
lines changed
Expand file tree Collapse file tree 1 file changed +27
-20
lines changed Original file line number Diff line number Diff line change 66 pull_request :
77 branches : [ "main" ]
88
9- # Allow one concurrent deployment
9+ permissions :
10+ contents : read
11+ security-events : write
12+
13+ # Allow one concurrent scan
1014concurrency :
11- group : " scanning "
15+ group : " codeql-scan "
1216 cancel-in-progress : true
1317
14-
1518jobs :
1619 analyze :
17- name : Analyze
18- runs-on : macos-13
19- permissions :
20- security-events : write
20+ name : Analyze Swift with CodeQL
21+ runs-on : macos-14
2122
2223 strategy :
2324 fail-fast : false
2425 matrix :
2526 language : [ 'swift' ]
2627
2728 steps :
28- - name : Checkout repository
29- uses : actions/checkout@v3
30-
31- - name : Initialize CodeQL
32- uses : github/codeql-action/init@v2
33- with :
34- languages : ${{ matrix.language }}
35-
36- - name : Build
37- run : swift build
38-
39- - name : Perform CodeQL Analysis
40- uses : github/codeql-action/analyze@v2
29+ - name : Checkout repository
30+ uses : actions/checkout@v4
31+
32+ - name : Cache Swift build artifacts
33+ uses : actions/cache@v3
34+ with :
35+ path : .build
36+ key : swift-build-${{ runner.os }}-${{ hashFiles('**/*.swift') }}
37+
38+ - name : Initialize CodeQL
39+ uses : github/codeql-action/init@v3
40+ with :
41+ languages : ${{ matrix.language }}
42+
43+ - name : Build
44+ run : swift build --configuration release
45+
46+ - name : Perform CodeQL Analysis
47+ uses : github/codeql-action/analyze@v3
You can’t perform that action at this time.
0 commit comments