mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user