File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 63
63
64
64
- name : Perform CodeQL Analysis
65
65
uses : github/codeql-action/analyze@v3
66
+ with :
67
+ category : " /language:${{matrix.language}}"
68
+ # define the output folder for SARIF files
69
+ output : sarif-results
70
+
71
+ # Unlock inline mechanism to suppress CodeQL warnings.
72
+ # https://github.com/github/codeql/issues/11427#issuecomment-1721059096
73
+ - name : Dismiss alerts
74
+ if : github.ref == 'refs/heads/main'
75
+ uses : advanced-security/dismiss-alerts@v1
76
+ with :
77
+ # specify a 'sarif-id' and 'sarif-file'
78
+ sarif-id : ${{ steps.analyze.outputs.sarif-id }}
79
+ sarif-file : sarif-results/${{ matrix.language }}.sarif
80
+ env :
81
+ GITHUB_TOKEN : ${{ github.token }}
Original file line number Diff line number Diff line change 31
31
# regex!
32
32
__version__ = "1.0.0"
33
33
34
- apilevel = "2.0"
35
- threadsafety = 1
36
- paramstyle = "qmark"
34
+ apilevel = "2.0" # codeql[py/unused-global-variable]
35
+ threadsafety = 1 # codeql[py/unused-global-variable]
36
+ paramstyle = "qmark" # codeql[py/unused-global-variable]
You can’t perform that action at this time.
0 commit comments