ci(verify): trivy из релизного tarball, версия 0.76.1
ci / lint (push) Successful in 45s
contract-openapi / openapi-contract (push) Failing after 40s
contract-openapi / ts-client-is-current (push) Failing after 35s
ci / unit (push) Successful in 44s
ci / security (push) Successful in 1m10s
ci / build (push) Successful in 34s
ci / image-scan (push) Failing after 52s
ci / push (push) Has been skipped
ci / lint (push) Successful in 45s
contract-openapi / openapi-contract (push) Failing after 40s
contract-openapi / ts-client-is-current (push) Failing after 35s
ci / unit (push) Successful in 44s
ci / security (push) Successful in 1m10s
ci / build (push) Successful in 34s
ci / image-scan (push) Failing after 52s
ci / push (push) Has been skipped
Refs #17
This commit is contained in:
@@ -245,13 +245,16 @@ jobs:
|
||||
if: needs.lint.outputs.has_dockerfile == 'true'
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
TRIVY_VERSION: "0.57.1"
|
||||
TRIVY_VERSION: "0.76.1"
|
||||
TRIVY_SEVERITY: "HIGH,CRITICAL"
|
||||
steps:
|
||||
- name: install trivy
|
||||
run: |
|
||||
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh \
|
||||
| sh -s -- -b /usr/local/bin "v${TRIVY_VERSION}"
|
||||
set -euo pipefail
|
||||
curl -fsSL -o /tmp/trivy.tar.gz \
|
||||
"https://github.com/aquasecurity/trivy/releases/download/v${TRIVY_VERSION}/trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz"
|
||||
tar -xzf /tmp/trivy.tar.gz -C /usr/local/bin trivy
|
||||
chmod +x /usr/local/bin/trivy
|
||||
trivy --version
|
||||
|
||||
- name: "trivy image (HIGH/CRITICAL -> fail)"
|
||||
|
||||
Reference in New Issue
Block a user