File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 5353 languages : ${{ matrix.language }}
5454 config-file : ./.github/codeql.yml
5555 queries : +security-and-quality
56+ # run an 'alert-suppression' query
57+ packs : " codeql/${{ matrix.language }}-queries:AlertSuppression.ql"
5658
5759 # - name: Autobuild
5860 # uses: github/codeql-action/autobuild@v2
6264 uv pip install --system '.[test]'
6365
6466 - name : Perform CodeQL Analysis
67+ id : analyze
6568 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 3131# regex!
3232__version__ = "1.0.0"
3333
34+ # codeql[py/unused-global-variable]
3435apilevel = "2.0"
3536threadsafety = 1
3637paramstyle = "qmark"
You can’t perform that action at this time.
0 commit comments