File tree Expand file tree Collapse file tree 1 file changed +16
-10
lines changed Expand file tree Collapse file tree 1 file changed +16
-10
lines changed Original file line number Diff line number Diff line change 1
1
name : " CodeQL"
2
2
3
+ env :
4
+ CODEQL_EXTRACTOR_JAVA_RUN_ANNOTATION_PROCESSORS : true
5
+
3
6
on :
4
7
push :
5
8
branches : [ master ]
6
9
pull_request :
7
10
# The branches below must be a subset of the branches above
8
11
branches : [ master ]
9
- schedule :
10
- - cron : ' 32 14 * * 0'
12
+ workflow_dispatch :
11
13
12
14
jobs :
13
15
analyze :
@@ -17,31 +19,35 @@ jobs:
17
19
actions : read
18
20
contents : read
19
21
security-events : write
20
-
22
+
21
23
strategy :
22
24
fail-fast : false
23
25
matrix :
24
26
language : [ 'java', 'javascript' ]
25
27
26
28
steps :
27
29
- name : Checkout repository
28
- uses : actions/checkout@v2
30
+ uses : actions/checkout@v3
29
31
# Get full history for spotless ratchetFrom
30
32
with :
31
33
fetch-depth : 0
32
34
33
35
# Initializes the CodeQL tools for scanning.
34
36
- name : Initialize CodeQL
35
- uses : github/codeql-action/init@v1
37
+ uses : github/codeql-action/init@v2
36
38
with :
37
39
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
42
41
43
42
- name : Build with Maven
44
43
run : mvn -DskipTests=true install
45
44
46
45
- 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
+
You can’t perform that action at this time.
0 commit comments