forked from antrea-io/antrea
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
From now on, we will only publish the new "split" images (e.g., antrea/antrea-agent-ubuntu and antrea/antrea-controller-ubuntu). For antrea-io#4832 Signed-off-by: Antonin Bas <[email protected]>
- Loading branch information
1 parent
a8d78bc
commit bafd61f
Showing
12 changed files
with
91 additions
and
87 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,6 @@ jobs: | |
if: github.repository == 'antrea-io/antrea' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Find greatest Antrea version | ||
id: find-antrea-greatest-version | ||
env: | ||
|
@@ -32,33 +31,56 @@ jobs: | |
- name: Pull Antrea Docker images | ||
id: pull | ||
run: | | ||
docker pull antrea/antrea-ubuntu:latest | ||
docker pull antrea/antrea-ubuntu:${{ steps.find-antrea-greatest-version.outputs.antrea_version }} | ||
- name: Run Trivy vulnerability scanner on latest Antrea Docker image | ||
docker pull antrea/antrea-agent-ubuntu:latest | ||
docker pull antrea/antrea-agent-ubuntu:${{ steps.find-antrea-greatest-version.outputs.antrea_version }} | ||
docker pull antrea/antrea-controller-ubuntu:latest | ||
docker pull antrea/antrea-controller-ubuntu:${{ steps.find-antrea-greatest-version.outputs.antrea_version }} | ||
- name: Run Trivy vulnerability scanner on latest antrea-agent Docker image | ||
if: ${{ always() && steps.pull.conclusion == 'success' }} | ||
uses: aquasecurity/[email protected] | ||
# we cannot use .trivy.yml as we need to override some config parameters | ||
# and that is not supported by aquasecurity/trivy-action | ||
with: | ||
scan-type: 'image' | ||
image-ref: 'antrea/antrea-ubuntu:latest' | ||
image-ref: 'antrea/antrea-agent-ubuntu:latest' | ||
exit-code: '1' | ||
ignore-unfixed: true | ||
severity: 'CRITICAL,HIGH' | ||
# whereabouts project doesn't upgrade dependencies frequently | ||
skip-files: '/opt/cni/bin/whereabouts' | ||
format: 'table' | ||
output: 'trivy.latest.txt' | ||
- name: Run Trivy vulnerability scanner on Antrea Docker image for latest released version | ||
- name: Run Trivy vulnerability scanner on latest antrea-controller Docker image | ||
if: ${{ always() && steps.pull.conclusion == 'success' }} | ||
uses: aquasecurity/[email protected] | ||
# we cannot use .trivy.yml as we need to override some config parameters | ||
# and that is not supported by aquasecurity/trivy-action | ||
with: | ||
scan-type: 'image' | ||
image-ref: 'antrea/antrea-controller-ubuntu:latest' | ||
exit-code: '1' | ||
ignore-unfixed: true | ||
severity: 'CRITICAL,HIGH' | ||
format: 'table' | ||
output: 'trivy.latest.txt' | ||
- name: Run Trivy vulnerability scanner on antrea-agent Docker image for latest released version | ||
if: ${{ always() && steps.pull.conclusion == 'success' }} | ||
uses: aquasecurity/[email protected] | ||
with: | ||
scan-type: 'image' | ||
image-ref: 'antrea/antrea-agent-ubuntu:${{ steps.find-antrea-greatest-version.outputs.antrea_version }}' | ||
exit-code: '1' | ||
ignore-unfixed: true | ||
severity: 'CRITICAL,HIGH' | ||
format: 'table' | ||
output: 'trivy.${{ steps.find-antrea-greatest-version.outputs.antrea_version }}.txt' | ||
- name: Run Trivy vulnerability scanner on antrea-controller Docker image for latest released version | ||
if: ${{ always() && steps.pull.conclusion == 'success' }} | ||
uses: aquasecurity/[email protected] | ||
with: | ||
scan-type: 'image' | ||
image-ref: 'antrea/antrea-ubuntu:${{ steps.find-antrea-greatest-version.outputs.antrea_version }}' | ||
image-ref: 'antrea/antrea-controller-ubuntu:${{ steps.find-antrea-greatest-version.outputs.antrea_version }}' | ||
exit-code: '1' | ||
ignore-unfixed: true | ||
severity: 'CRITICAL,HIGH' | ||
skip-files: '/opt/cni/bin/whereabouts' | ||
format: 'table' | ||
output: 'trivy.${{ steps.find-antrea-greatest-version.outputs.antrea_version }}.txt' | ||
- name: Upload Trivy scan reports | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Scan Antrea Docker image for vulnerabilities before release | ||
name: Scan Antrea Docker images for vulnerabilities before release | ||
|
||
on: | ||
pull_request: | ||
|
@@ -14,12 +14,6 @@ jobs: | |
- 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: | ||
|
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
This file was deleted.
Oops, something went wrong.
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
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
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
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
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