File tree 2 files changed +20
-0
lines changed
2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 53
53
languages : ${{ matrix.language }}
54
54
config-file : ./.github/codeql.yml
55
55
queries : +security-and-quality
56
+ # run an 'alert-suppression' query
57
+ packs : " codeql/${{ matrix.language }}-queries:AlertSuppression.ql"
56
58
57
59
# - name: Autobuild
58
60
# uses: github/codeql-action/autobuild@v2
62
64
uv pip install --system '.[test]'
63
65
64
66
- name : Perform CodeQL Analysis
67
+ id : analyze
65
68
uses : github/codeql-action/analyze@v3
69
+ with :
70
+ category : " /language:${{matrix.language}}"
71
+ # define the output folder for SARIF files
72
+ output : sarif-results
73
+
74
+ # Unlock inline mechanism to suppress CodeQL warnings.
75
+ # https://github.com/github/codeql/issues/11427#issuecomment-1721059096
76
+ - name : Dismiss alerts
77
+ # if: github.ref == 'refs/heads/main'
78
+ uses : advanced-security/dismiss-alerts@v1
79
+ with :
80
+ # specify a 'sarif-id' and 'sarif-file'
81
+ sarif-id : ${{ steps.analyze.outputs.sarif-id }}
82
+ sarif-file : sarif-results/${{ matrix.language }}.sarif
83
+ env :
84
+ 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
+ # codeql[py/unused-global-variable]
34
35
apilevel = "2.0"
35
36
threadsafety = 1
36
37
paramstyle = "qmark"
You can’t perform that action at this time.
0 commit comments