diff --git a/.github/workflows/trivy_scan.yml b/.github/workflows/trivy_scan.yml index e8955a5098d..e7dcb9a516f 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.17.0 + uses: aquasecurity/trivy-action@0.18.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.17.0 + uses: aquasecurity/trivy-action@0.18.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 ebcac0253ff..6103f5206ef 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.17.0 + uses: aquasecurity/trivy-action@0.18.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.17.0 + uses: aquasecurity/trivy-action@0.18.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.17.0 + uses: aquasecurity/trivy-action@0.18.0 with: scan-type: 'image' image-ref: 'antrea/antrea-controller-ubuntu:latest'