Update aquasec/trivy Docker tag to v0.76.2 #38
@@ -84,7 +84,7 @@ jobs:
|
|||||||
docker run --rm \
|
docker run --rm \
|
||||||
-e DOCKER_HOST=tcp://dockerhost:2375 \
|
-e DOCKER_HOST=tcp://dockerhost:2375 \
|
||||||
--add-host=dockerhost:host-gateway \
|
--add-host=dockerhost:host-gateway \
|
||||||
aquasec/trivy:0.74.0 image --exit-code 1 --severity CRITICAL nvidia-stock-bot:ci
|
aquasec/trivy:0.76.2 image --exit-code 1 --severity CRITICAL nvidia-stock-bot:ci
|
||||||
|
|
||||||
- name: Handle CRITICAL findings
|
- name: Handle CRITICAL findings
|
||||||
if: steps.trivy_critical.outcome == 'failure'
|
if: steps.trivy_critical.outcome == 'failure'
|
||||||
@@ -102,7 +102,7 @@ jobs:
|
|||||||
if docker run --rm \
|
if docker run --rm \
|
||||||
-e DOCKER_HOST=tcp://dockerhost:2375 \
|
-e DOCKER_HOST=tcp://dockerhost:2375 \
|
||||||
--add-host=dockerhost:host-gateway \
|
--add-host=dockerhost:host-gateway \
|
||||||
aquasec/trivy:0.74.0 image --exit-code 1 --severity CRITICAL nvidia-stock-bot:remediated; then
|
aquasec/trivy:0.76.2 image --exit-code 1 --severity CRITICAL nvidia-stock-bot:remediated; then
|
||||||
echo "apk upgrade clears the CRITICAL finding(s) — opening a PR for review."
|
echo "apk upgrade clears the CRITICAL finding(s) — opening a PR for review."
|
||||||
|
|
||||||
BRANCH="auto/cve-fix-$(date +%Y%m%d)-$(echo "${{ github.sha }}" | cut -c1-7)"
|
BRANCH="auto/cve-fix-$(date +%Y%m%d)-$(echo "${{ github.sha }}" | cut -c1-7)"
|
||||||
@@ -130,7 +130,7 @@ jobs:
|
|||||||
docker run --rm \
|
docker run --rm \
|
||||||
-e DOCKER_HOST=tcp://dockerhost:2375 \
|
-e DOCKER_HOST=tcp://dockerhost:2375 \
|
||||||
--add-host=dockerhost:host-gateway \
|
--add-host=dockerhost:host-gateway \
|
||||||
aquasec/trivy:0.74.0 image --exit-code 0 --severity HIGH nvidia-stock-bot:ci
|
aquasec/trivy:0.76.2 image --exit-code 0 --severity HIGH nvidia-stock-bot:ci
|
||||||
|
|
||||||
- name: Publish tagged image
|
- name: Publish tagged image
|
||||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||||
|
|||||||
Reference in new issue
Block a user