Skip to content

Commit cbf5bb5

Browse files
authored
Merge pull request #200 from ncouraud/master
Update codeql-analysis.yml to be current
2 parents 7c587ee + 48b962f commit cbf5bb5

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
name: "CodeQL"
22

3+
env:
4+
CODEQL_EXTRACTOR_JAVA_RUN_ANNOTATION_PROCESSORS: true
5+
36
on:
47
push:
58
branches: [ master ]
69
pull_request:
710
# The branches below must be a subset of the branches above
811
branches: [ master ]
9-
schedule:
10-
- cron: '32 14 * * 0'
12+
workflow_dispatch:
1113

1214
jobs:
1315
analyze:
@@ -17,31 +19,35 @@ jobs:
1719
actions: read
1820
contents: read
1921
security-events: write
20-
22+
2123
strategy:
2224
fail-fast: false
2325
matrix:
2426
language: [ 'java', 'javascript' ]
2527

2628
steps:
2729
- name: Checkout repository
28-
uses: actions/checkout@v2
30+
uses: actions/checkout@v3
2931
# Get full history for spotless ratchetFrom
3032
with:
3133
fetch-depth: 0
3234

3335
# Initializes the CodeQL tools for scanning.
3436
- name: Initialize CodeQL
35-
uses: github/codeql-action/init@v1
37+
uses: github/codeql-action/init@v2
3638
with:
3739
languages: ${{ matrix.language }}
38-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
39-
40-
#- name: Autobuild
41-
# uses: github/codeql-action/autobuild@v1
40+
queries: security-extended, security-experimental, security-and-quality
4241

4342
- name: Build with Maven
4443
run: mvn -DskipTests=true install
4544

4645
- name: Perform CodeQL Analysis
47-
uses: github/codeql-action/analyze@v1
46+
uses: github/codeql-action/analyze@v2
47+
48+
- name: Upload Output
49+
uses: actions/upload-artifact@v3
50+
with:
51+
name: ${{ matrix.language }} SARIF
52+
path: ${{ runner.workspace }}/results/*.sarif
53+

0 commit comments

Comments
 (0)