diff --git a/.github/workflows/trivy_scan.yml b/.github/workflows/trivy_scan.yml index cc97e03a9bb..1f95703b5ca 100644 --- a/.github/workflows/trivy_scan.yml +++ b/.github/workflows/trivy_scan.yml @@ -36,7 +36,7 @@ jobs: docker pull antrea/antrea-ubuntu:${{ steps.find-antrea-greatest-version.outputs.antrea_version }} - name: Run Trivy vulnerability scanner on latest Antrea Docker image if: ${{ always() && steps.pull.conclusion == 'success' }} - uses: aquasecurity/trivy-action@0.16.1 + uses: aquasecurity/trivy-action@0.21.0 # we cannot use .trivy.yml as we need to override some config parameters # and that is not supported by aquasecurity/trivy-action with: @@ -51,7 +51,7 @@ jobs: output: 'trivy.latest.txt' - name: Run Trivy vulnerability scanner on Antrea Docker image for latest released version if: ${{ always() && steps.pull.conclusion == 'success' }} - uses: aquasecurity/trivy-action@0.16.1 + uses: aquasecurity/trivy-action@0.21.0 with: scan-type: 'image' image-ref: 'antrea/antrea-ubuntu:${{ steps.find-antrea-greatest-version.outputs.antrea_version }}' diff --git a/.github/workflows/trivy_scan_before_release.yml b/.github/workflows/trivy_scan_before_release.yml index b26573e505f..4c9a4387dc9 100644 --- a/.github/workflows/trivy_scan_before_release.yml +++ b/.github/workflows/trivy_scan_before_release.yml @@ -15,19 +15,19 @@ jobs: run: | ./hack/build-antrea-linux-all.sh --pull - name: Run Trivy vulnerability scanner on Antrea unified Docker image - uses: aquasecurity/trivy-action@0.16.1 + uses: aquasecurity/trivy-action@0.21.0 with: scan-type: 'image' image-ref: 'antrea/antrea-ubuntu:latest' trivy-config: '.trivy.yml' - name: Run Trivy vulnerability scanner on the antrea-agent Docker image - uses: aquasecurity/trivy-action@0.16.1 + uses: aquasecurity/trivy-action@0.21.0 with: scan-type: 'image' image-ref: 'antrea/antrea-agent-ubuntu:latest' trivy-config: '.trivy.yml' - name: Run Trivy vulnerability scanner on the antrea-controller Docker image - uses: aquasecurity/trivy-action@0.16.1 + uses: aquasecurity/trivy-action@0.21.0 with: scan-type: 'image' image-ref: 'antrea/antrea-controller-ubuntu:latest'