- Introduced a new JSON fixture `receipt-input.json` containing base, environmental, and threat metrics for CVSS scoring. - Added corresponding SHA256 hash file `receipt-input.sha256` to ensure integrity of the JSON fixture.
30 lines
802 B
Bash
30 lines
802 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
OUTPUT="${1:-${ROOT}/out/reachability-benchmark-kit.tar.gz}"
|
|
SDE="${SOURCE_DATE_EPOCH:-1730000000}"
|
|
|
|
mkdir -p "$(dirname "${OUTPUT}")"
|
|
cd "${ROOT}"
|
|
|
|
# Deterministic tarball containing schemas, manifest, truth, cases, tools, and docs.
|
|
tar --sort=name --mtime="@${SDE}" --owner=0 --group=0 --numeric-owner \
|
|
-czf "${OUTPUT}" \
|
|
benchmark/manifest.sample.json \
|
|
benchmark/CHANGELOG.md \
|
|
benchmark/checklists \
|
|
benchmark/templates/determinism \
|
|
benchmark/schemas/benchmark-manifest.schema.json \
|
|
benchmark/truth \
|
|
schemas \
|
|
tools/verify_manifest.py tools/validate.py tools/requirements.txt \
|
|
cases \
|
|
baselines \
|
|
ci \
|
|
website \
|
|
docs \
|
|
README.md LICENSE NOTICE
|
|
|
|
sha256sum "${OUTPUT}"
|