Skip to content

Commit

Permalink
Swapping trivy to test it
Browse files Browse the repository at this point in the history
  • Loading branch information
madhavajay committed Jul 5, 2023
1 parent 09f5106 commit ec75fab
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/container-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,6 @@ jobs:
run: DOCKER_BUILDKIT=1 docker build -f packages/grid/backend/backend.dockerfile packages -t backend:${{ github.sha }}
# Runs Snyk Container (Container and SCA) analysis and uploads result to Snyk.

- name: Snyk Container monitor
run: snyk container monitor backend:${{ github.sha }} --file=packages/grid/backend/backend.dockerfile

# Push the Snyk Code results into GitHub Code Scanning tab
- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: snyk-code.sarif

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@7b7aa264d83dc58691451798b4d117d53d21edfe
with:
Expand All @@ -60,6 +51,15 @@ jobs:
with:
sarif_file: "trivy-results.sarif"

- name: Snyk Container monitor
run: snyk container monitor backend:${{ github.sha }} --file=packages/grid/backend/backend.dockerfile

# Push the Snyk Code results into GitHub Code Scanning tab
- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: snyk-code.sarif

scan-frontend:
permissions:
contents: read # for actions/checkout to fetch code
Expand Down

0 comments on commit ec75fab

Please sign in to comment.