Skip to content

Commit

Permalink
Merge pull request #10 from pstjohn/snyk-action
Browse files Browse the repository at this point in the history
attempting to get snyk working
  • Loading branch information
pstjohn authored May 2, 2022
2 parents 58d1ea1 + e419bfc commit c0eb57e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,19 @@ jobs:
name: Run Tests
run: |
docker run localhost:5000/name/app:latest ./run_tests.sh
-
name: Run Snyk to check Docker image for vulnerabilities
uses: snyk/actions/docker@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
image: localhost:5000/name/app:latest
args: --severity-threshold=high --file=Dockerfile
-
name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: snyk.sarif

deploy:
needs: build-and-test
Expand Down

0 comments on commit c0eb57e

Please sign in to comment.