Skip to content

Commit

Permalink
#481: adding severity threshold to docker scanning to fail if thresho…
Browse files Browse the repository at this point in the history
…ld exceeded
  • Loading branch information
aaronreed708 committed Dec 6, 2023
1 parent d1686a6 commit fed75c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
push:
branches:
- 'main'
- 'dev'
- 'github-action-docker-scanner'
paths:
- 'code/src/**'
- 'code/package.json'
Expand All @@ -25,6 +27,7 @@ jobs:
uses: crazy-max/ghaction-container-scan@dfa7e54dc32045120f06d0bc8d7724860f5db0ad
with:
image: user/app:latest
severity_threshold: HIGH
push-to-registry:
name: Push Docker image to Docker Hub
needs: docker-scan
Expand Down

0 comments on commit fed75c2

Please sign in to comment.