File tree Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,17 @@ jobs:
141141 with :
142142 image : ${{ env.IMAGE_NAME }}:${{ github.sha }}
143143 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'
145155 scan :
146156 name : " Trivy"
147157 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 2424 env :
2525 SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
2626 with :
27- args : --sarif-file-output=snyk.sarif
28- # yamllint disable rule:comments-indentation
29- # - name: Upload result to GitHub Code Scanning
30- # uses: github/codeql-action/upload-sarif@v2
31- # with:
32- # sarif_file: snyk.sarif
33- # yamllint enable rule:comments-indentation
27+ args : --sarif-file-output=snyk-code.sarif
28+ - name : Upload result to GitHub Code Scanning
29+ uses : github/codeql-action/upload-sarif@v3
30+ with :
31+ sarif_file : ' snyk-code.sarif'
You can’t perform that action at this time.
0 commit comments