Skip to content

Commit

Permalink
Trivy workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
senthil10 committed Oct 30, 2024
1 parent ca80c1c commit 9a42bec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/trivy-branch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
uses: actions/checkout@v4

- name: Run Trivy vulnerability scanner
env:
TRIVY_DB_REPOSITORY: 'ghcr.io/aquasecurity/trivy-db,public.ecr.aws/aquasecurity/trivy-db'
uses: aquasecurity/trivy-action@0.9.2
with:
scan-type: "fs"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/trivy-scheduled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
run: echo REPOSITORY_OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV

- name: Run Trivy vulnerability scanner
env:
TRIVY_DB_REPOSITORY: 'public.ecr.aws/aquasecurity/trivy-db'
uses: aquasecurity/trivy-action@0.9.2
with:
image-ref: 'ghcr.io/${{ env.REPOSITORY_OWNER }}/pathogens-portal:develop'
Expand Down

0 comments on commit 9a42bec

Please sign in to comment.