Skip to content

Commit

Permalink
[AWSRESET313: updated workflow]
Browse files Browse the repository at this point in the history
  • Loading branch information
rahul-dvsa committed Oct 8, 2023
1 parent e1d838d commit 399ca4f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/php-base-image-build-pr-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
env:
AWS_REGION : ${{ secrets.DEV_AWS_REGION }} #Change to reflect your Region
AWS_ACCOUNT_ID: ${{ secrets.DEV_AWS_ACCOUNT }}
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

permissions:
id-token: write # This is required for requesting the JWT
Expand Down Expand Up @@ -74,7 +75,13 @@ jobs:
uses: snyk/actions/docker@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
image:

- name: snyk scan api image
run: |
image_list=$(docker images --format "{{.Repository}}")
for image in $image_list; do
snyk container test --all-projects $image
done

0 comments on commit 399ca4f

Please sign in to comment.