Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
52fab24049 | ||
|
|
1d363f0eac | ||
|
|
dfe768f871 | ||
|
|
fc400e752d | ||
|
|
78d295d616 | ||
|
|
55b6b50672 | ||
|
|
e82c65a3c4 | ||
|
|
ade9877f07 | ||
|
|
371eedc0ef |
No files matched your search
@@ -38,7 +38,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
# No Docker CLI here, so trivy-gate falls back to the pinned binary.
|
||||
container:
|
||||
image: node:24-trixie-slim@sha256:43b9ba1142b8dcf33fa8f922ca1be85714adc444e0586c7cf7726daaeabc1bea
|
||||
image: node:26-trixie-slim@sha256:e4db4c914bf8ad241bd24804fc25d272d89bad97e68cdc8a1414862790a02c39
|
||||
steps:
|
||||
- name: Tools the actions expect
|
||||
run: apt-get update -qq && apt-get install -y -qq --no-install-recommends ca-certificates curl git jq >/dev/null
|
||||
|
||||
@@ -104,6 +104,8 @@ binary is verified by SHA-256.
|
||||
`v1` image gate + SBOM; `v2` fs scans, binary runtime, misconfig, gitleaks;
|
||||
`v3` gitleaks fetches the parent of a single commit in a depth-1 checkout
|
||||
(dispatch/cron runs scanned the whole tree as a root commit before).
|
||||
`v8` dtrack-sbom really never fails the job: the runner's `bash -e` turned
|
||||
an unreachable Dependency-Track into a failed build instead of a warning.
|
||||
|
||||
Pinned tools (Trivy binary + image, gitleaks) are bumped by Renovate
|
||||
(tth/renovate). Its post-upgrade task `.gitea/update-checksums.sh`
|
||||
|
||||
@@ -32,7 +32,7 @@ inputs:
|
||||
default: "5"
|
||||
trivy-image:
|
||||
description: Trivy container image, pinned by digest.
|
||||
default: aquasec/trivy:0.75.0@sha256:af6acf9a6b85dfe389a1941505c0ce9efef52a4719635e1a962f022a3d855daa
|
||||
default: aquasec/trivy:0.76.1@sha256:790fd66d1697395d8693d1acaa1ea702406a20f109b6fc7bac8db623eca6c06c
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
@@ -49,7 +49,11 @@ runs:
|
||||
MIN: ${{ inputs.min-components }}
|
||||
TRIVY: ${{ inputs.trivy-image }}
|
||||
run: |
|
||||
set -uo pipefail
|
||||
# The runner starts composite bash steps with -e; this script handles
|
||||
# every failure itself (warn, exit 0), so -e only turns an unguarded
|
||||
# command into a failed job - e.g. the cat of a resp.json curl never
|
||||
# wrote when Dependency-Track was unreachable.
|
||||
set +e -uo pipefail
|
||||
warn() { echo "::warning::SBOM $PROJECT/$VERSION: $*"; exit 0; }
|
||||
[ -n "$REPORT" ] && [ -f "$REPORT" ] || warn "no report (gate skipped?)"
|
||||
[ -n "$DT_KEY" ] || warn "no API key"
|
||||
|
||||
@@ -50,7 +50,7 @@ inputs:
|
||||
default: "false"
|
||||
trivy-image:
|
||||
description: Trivy container image, pinned by digest.
|
||||
default: aquasec/trivy:0.75.0@sha256:af6acf9a6b85dfe389a1941505c0ce9efef52a4719635e1a962f022a3d855daa
|
||||
default: aquasec/trivy:0.76.1@sha256:790fd66d1697395d8693d1acaa1ea702406a20f109b6fc7bac8db623eca6c06c
|
||||
cache-volume:
|
||||
description: >
|
||||
Docker named volume for the vulnerability DB. A named volume, not a
|
||||
@@ -77,9 +77,9 @@ runs:
|
||||
SCAN_REF: ${{ inputs.scan-ref }}
|
||||
RUNTIME: ${{ inputs.runtime }}
|
||||
SCANNERS: ${{ inputs.scanners }}
|
||||
TRIVY_VERSION: "0.75.0"
|
||||
TRIVY_SHA256_AMD64: c6e65abddb348e25f10549df887045629cf28cc72453cd1c63acb717316b3f3f
|
||||
TRIVY_SHA256_ARM64: a1ee9f6ffb7d112b64ff726a2a0717c21175c1114361391f4a132956751a13b3
|
||||
TRIVY_VERSION: "0.76.1"
|
||||
TRIVY_SHA256_AMD64: c7cbe3137fb8a48a17574bede3dd6beb16742d1e9772929940fc90082c39d9c0
|
||||
TRIVY_SHA256_ARM64: e174dff2a6dba5e3ae41f8d0537a6324405bd08132497340304c6b20e0f16a1f
|
||||
TRIVY_USERNAME: ${{ inputs.username }}
|
||||
TRIVY_PASSWORD: ${{ inputs.password }}
|
||||
PLATFORM: ${{ inputs.platform }}
|
||||
|
||||
Reference in new issue
Block a user