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 11name : " CodeQL"
22
3+ env :
4+ CODEQL_EXTRACTOR_JAVA_RUN_ANNOTATION_PROCESSORS : true
5+
36on :
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
1214jobs :
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+
You can’t perform that action at this time.
0 commit comments