Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ on:
permissions:
contents: read

# trivy-action installs its own default Trivy (0.70.0 in v0.36.0), which
# lags behind Trivy releases. Pin a current one; Dependabot does not
# update this line, so bump it by hand.
env:
TRIVY_VERSION: v0.76.2

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
Expand Down Expand Up @@ -111,6 +117,7 @@ jobs:
if: matrix.arch == 'amd64'
uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
with:
version: ${{ env.TRIVY_VERSION }}
image-ref: nginx:ci
scanners: vuln
ignore-unfixed: true
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ concurrency:

env:
IMAGE: ghcr.io/${{ github.repository }}
# See ci.yml: the Trivy version trivy-action installs, bumped by hand.
TRIVY_VERSION: v0.76.2

jobs:
plan:
Expand Down Expand Up @@ -80,6 +82,7 @@ jobs:
TRIVY_USERNAME: ${{ github.actor }}
TRIVY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
with:
version: ${{ env.TRIVY_VERSION }}
image-ref: ${{ env.IMAGE }}:${{ steps.ref.outputs.version }}
scanners: vuln
ignore-unfixed: true
Expand Down Expand Up @@ -200,6 +203,7 @@ jobs:
- name: Scan image for known vulnerabilities
uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
with:
version: ${{ env.TRIVY_VERSION }}
image-ref: nginx:release-test
scanners: vuln
ignore-unfixed: true
Expand Down