Skip to content

Commit b75b9dd

Browse files
authored
Merge pull request #458 from sir-gon/feature/ga-snyk
Feature/ga snyk
2 parents 23c69e2 + 45478b3 commit b75b9dd

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

.github/workflows/docker-image.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff 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

.github/workflows/snyk-code.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@ jobs:
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'

0 commit comments

Comments
 (0)