Skip to content

Commit

Permalink
Merge pull request #1014 from Automattic/update/trivy
Browse files Browse the repository at this point in the history
ci: update `aquasec/trivy` to 0.58.0
  • Loading branch information
sjinks authored Dec 14, 2024
2 parents d32bd7a + f0461ca commit b2b7a25
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/actions/build-docker-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ runs:
-v $(pwd)/.cache:/root/.cache \
-v $(pwd):/workdir \
-w /workdir \
aquasec/trivy:0.57.1 image --format json --ignore-unfixed --pkg-types os --scanners vuln --db-repository ghcr.io/aquasecurity/trivy-db:2,public.ecr.aws/aquasecurity/trivy-db:2 ${{ inputs.primaryTag }} --output trivy.json
aquasec/trivy:0.58.0 image --format json --ignore-unfixed --pkg-types os --scanners vuln --db-repository ghcr.io/aquasecurity/trivy-db:2,public.ecr.aws/aquasecurity/trivy-db:2 ${{ inputs.primaryTag }} --output trivy.json
sudo chmod a+r -R .cache
if: inputs.scan == 'true'

Expand All @@ -195,13 +195,13 @@ runs:
if: inputs.scan == 'true' && steps.old_hash.outputs.hash != steps.new_hash.outputs.hash && steps.new_hash.outputs.hash != ''

- name: Print report
uses: docker://aquasec/trivy:0.57.1
uses: docker://aquasec/trivy:0.58.0
with:
args: convert --format=table trivy.json
if: inputs.scan == 'true'

- name: Generate SARIF
uses: docker://aquasec/trivy:0.57.1
uses: docker://aquasec/trivy:0.58.0
with:
args: convert --format=sarif --output=${{ steps.filename.outputs.filename }} trivy.json
if: inputs.scan == 'true' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name)
Expand All @@ -214,7 +214,7 @@ runs:
continue-on-error: true

- name: Prepare markdown report
uses: docker://aquasec/trivy:0.57.1
uses: docker://aquasec/trivy:0.58.0
with:
args: convert --format=template [email protected]/actions/build-docker-image/markdown.tpl --output=trivy.md trivy.json
if: inputs.scan == 'true' && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/mu-plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,4 @@ jobs:
push: ${{ github.base_ref == null }}
primaryTag: ghcr.io/automattic/vip-container-images/mu-plugins:0.1
tags: ghcr.io/automattic/vip-container-images/mu-plugins:latest
scan: false

0 comments on commit b2b7a25

Please sign in to comment.