Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
78d295d616 | ||
|
|
55b6b50672 | ||
|
|
e82c65a3c4 |
No files matched your search
@@ -38,7 +38,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# No Docker CLI here, so trivy-gate falls back to the pinned binary.
|
# No Docker CLI here, so trivy-gate falls back to the pinned binary.
|
||||||
container:
|
container:
|
||||||
image: node:24-trixie-slim@sha256:43b9ba1142b8dcf33fa8f922ca1be85714adc444e0586c7cf7726daaeabc1bea
|
image: node:26-trixie-slim@sha256:36793bcbb160a6a16cede1e62b93f84e26b78a972a8a4c0b879c1c12f22761ec
|
||||||
steps:
|
steps:
|
||||||
- name: Tools the actions expect
|
- 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
|
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;
|
`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
|
`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).
|
(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
|
Pinned tools (Trivy binary + image, gitleaks) are bumped by Renovate
|
||||||
(tth/renovate). Its post-upgrade task `.gitea/update-checksums.sh`
|
(tth/renovate). Its post-upgrade task `.gitea/update-checksums.sh`
|
||||||
|
|||||||
@@ -49,7 +49,11 @@ runs:
|
|||||||
MIN: ${{ inputs.min-components }}
|
MIN: ${{ inputs.min-components }}
|
||||||
TRIVY: ${{ inputs.trivy-image }}
|
TRIVY: ${{ inputs.trivy-image }}
|
||||||
run: |
|
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; }
|
warn() { echo "::warning::SBOM $PROJECT/$VERSION: $*"; exit 0; }
|
||||||
[ -n "$REPORT" ] && [ -f "$REPORT" ] || warn "no report (gate skipped?)"
|
[ -n "$REPORT" ] && [ -f "$REPORT" ] || warn "no report (gate skipped?)"
|
||||||
[ -n "$DT_KEY" ] || warn "no API key"
|
[ -n "$DT_KEY" ] || warn "no API key"
|
||||||
|
|||||||
Reference in new issue
Block a user