File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,17 @@ jobs:
141
141
with :
142
142
image : ${{ env.IMAGE_NAME }}:${{ github.sha }}
143
143
args : --file=Dockerfile
144
-
144
+ # yamllint disable rule:line-length
145
+ # https://github.com/github/codeql-action/issues/2187#issuecomment-2043220400
146
+ - name : Replace security-severity undefined for license-related findings
147
+ run : |
148
+ sed -i 's/"security-severity": "undefined"/"security-severity": "0"/g' snyk.sarif
149
+ sed -i 's/"security-severity": "null"/"security-severity": "0"/g' snyk.sarif
150
+ # yamllint enable rule:line-length
151
+ - name : Upload result to GitHub Code Scanning
152
+ uses : github/codeql-action/upload-sarif@v3
153
+ with :
154
+ sarif_file : ' snyk.sarif'
145
155
scan :
146
156
name : " Trivy"
147
157
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments