Skip to content
Open
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
10 changes: 5 additions & 5 deletions .github/workflows/trivy_scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
docker pull antrea/antrea-controller-ubuntu:latest
docker pull antrea/antrea-controller-ubuntu:${{ steps.find-antrea-greatest-version.outputs.antrea_version }}
- name: Install Trivy
uses: aquasecurity/setup-trivy@v0.2.3
uses: aquasecurity/setup-trivy@v0.2.4
- name: Get current UTC date
id: date
run: echo "date=$(date -u +'%Y-%m-%d')" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
key: ${{ steps.restore-db-cache.outputs.cache-primary-key }}
- name: Run Trivy vulnerability scanner on latest antrea-agent Docker image
if: ${{ always() && steps.pull.conclusion == 'success' }}
uses: aquasecurity/trivy-action@0.32.0
uses: aquasecurity/trivy-action@0.33.0
# we cannot use .trivy.yml as we need to override some config parameters
# and that is not supported by aquasecurity/trivy-action
with:
Expand All @@ -87,7 +87,7 @@ jobs:
TRIVY_SKIP_JAVA_DB_UPDATE: true
- name: Run Trivy vulnerability scanner on latest antrea-controller Docker image
if: ${{ always() && steps.pull.conclusion == 'success' }}
uses: aquasecurity/trivy-action@0.32.0
uses: aquasecurity/trivy-action@0.33.0
# we cannot use .trivy.yml as we need to override some config parameters
# and that is not supported by aquasecurity/trivy-action
with:
Expand All @@ -105,7 +105,7 @@ jobs:
TRIVY_SKIP_JAVA_DB_UPDATE: true
- name: Run Trivy vulnerability scanner on antrea-agent Docker image for latest released version
if: ${{ always() && steps.pull.conclusion == 'success' }}
uses: aquasecurity/trivy-action@0.32.0
uses: aquasecurity/trivy-action@0.33.0
with:
scan-type: 'image'
image-ref: 'antrea/antrea-agent-ubuntu:${{ steps.find-antrea-greatest-version.outputs.antrea_version }}'
Expand All @@ -121,7 +121,7 @@ jobs:
TRIVY_SKIP_JAVA_DB_UPDATE: true
- name: Run Trivy vulnerability scanner on antrea-controller Docker image for latest released version
if: ${{ always() && steps.pull.conclusion == 'success' }}
uses: aquasecurity/trivy-action@0.32.0
uses: aquasecurity/trivy-action@0.33.0
with:
scan-type: 'image'
image-ref: 'antrea/antrea-controller-ubuntu:${{ steps.find-antrea-greatest-version.outputs.antrea_version }}'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/trivy_scan_before_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
run: |
./hack/build-antrea-linux-all.sh --pull
- name: Install Trivy
uses: aquasecurity/setup-trivy@v0.2.3
uses: aquasecurity/setup-trivy@v0.2.4
- name: Download Trivy DB
# Always download the latest DB for releases, don't use a cached version.
# Try downloading the vulnerability DB up to 5 times, to account for TOOMANYREQUESTS errors.
Expand All @@ -28,7 +28,7 @@ jobs:
run: |
for i in {1..5}; do trivy image --download-db-only --cache-dir $GITHUB_WORKSPACE/.cache/trivy && break || sleep 1; done
- name: Run Trivy vulnerability scanner on the antrea-agent Docker image
uses: aquasecurity/trivy-action@0.32.0
uses: aquasecurity/trivy-action@0.33.0
with:
scan-type: 'image'
image-ref: 'antrea/antrea-agent-ubuntu:latest'
Expand All @@ -39,7 +39,7 @@ jobs:
TRIVY_SKIP_DB_UPDATE: true
TRIVY_SKIP_JAVA_DB_UPDATE: true
- name: Run Trivy vulnerability scanner on the antrea-controller Docker image
uses: aquasecurity/trivy-action@0.32.0
uses: aquasecurity/trivy-action@0.33.0
with:
scan-type: 'image'
image-ref: 'antrea/antrea-controller-ubuntu:latest'
Expand Down