fix(docker): Fix invalid snyk serif (#3737)

* Add code to prevent invalid snyk serif

* Prevent the fix for snyk to run on pr
This commit is contained in:
Fleny
2024-07-13 08:17:59 -05:00
committed by GitHub
parent 06664ed8bb
commit 6cf16bdc6b
@@ -103,6 +103,7 @@ jobs:
run: docker load --input /tmp/rest-passthrough-image.tar
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
if: ${{ github.event_name == 'schedule' || github.event_name == 'push' }}
with:
image-ref: 'discordeno/app-rest-passthrough:latest'
format: 'table'
@@ -135,7 +136,12 @@ jobs:
with:
image: 'discordeno/app-rest-passthrough:latest'
args: --file=docker-apps/rest-passthrough/Dockerfile
- name: Upload result to GitHub Code Scanning
# See https://github.com/github/codeql-action/issues/2187#issuecomment-2043220400 for for info
- name: Replace security-severity undefined for license-related findings
if: ${{ github.event_name == 'schedule' || github.event_name == 'push' }}
run: |
sed -i 's/"security-severity": "undefined"/"security-severity": "0"/g' snyk.sarif
- name: Upload snyk scan results to GitHub Security tab
if: ${{ github.event_name == 'schedule' || github.event_name == 'push' }}
uses: github/codeql-action/upload-sarif@v3
with: