Automated cherry pick of #6669: Add docker credentials to windows CI to avoid rate limit #435
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Scan Antrea Docker image for vulnerabilities before release | |
on: | |
pull_request: | |
branches: | |
- release-* | |
jobs: | |
build: | |
if: startsWith(github.event.pull_request.title, 'Release ') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build Antrea Docker image | |
run: | | |
./hack/build-antrea-linux-all.sh --pull | |
- name: Run Trivy vulnerability scanner on Antrea unified Docker image | |
uses: aquasecurity/[email protected] | |
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/[email protected] | |
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/[email protected] | |
with: | |
scan-type: 'image' | |
image-ref: 'antrea/antrea-controller-ubuntu:latest' | |
trivy-config: '.trivy.yml' |