Skip to content

Commit

Permalink
fix: docker-scan workflow permissions (#119)
Browse files Browse the repository at this point in the history
Update the Docker vulnerability scan action to allow
write to the security events of the repo. This allows the
scan results to be published.
  • Loading branch information
patheard authored Apr 21, 2023
1 parent 7308bba commit 7dc92e8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docker-vulnerability-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ env:
DOCKER_SLUG: public.ecr.aws/cds-snc/notify-document-download-api

permissions:
id-token: write # This is required for requesting the OIDC JWT
contents: read # This is required for actions/checkout
id-token: write # This is required for requesting the OIDC JWT
contents: read # This is required for actions/checkout
security-events: write # This is required for the docker-scan action

jobs:
docker-vulnerability-scan:
Expand Down

0 comments on commit 7dc92e8

Please sign in to comment.