Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,47 @@ on:
branches: [main]

jobs:
secret-scan:
name: Secret scan
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Install pinned gitleaks
env:
GITLEAKS_VERSION: "8.24.3"
GITLEAKS_SHA256: "9991e0b2903da4c8f6122b5c3186448b927a5da4deef1fe45271c3793f4ee29c"
run: |
set -euo pipefail
archive="$RUNNER_TEMP/gitleaks.tar.gz"
checksum_file="$RUNNER_TEMP/gitleaks.sha256"
curl --fail --silent --show-error --location \
"https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz" \
--output "$archive"
printf '%s %s\n' "$GITLEAKS_SHA256" "$archive" > "$checksum_file"
sha256sum --check "$checksum_file"
tar -xzf "$archive" -C "$RUNNER_TEMP" gitleaks
- name: Scan repository with redacted output
env:
BASE_SHA: ${{ github.event.before || github.event.pull_request.base.sha }}
HEAD_SHA: ${{ github.event.after || github.event.pull_request.head.sha || github.sha }}
run: |
set -euo pipefail
if [[ "$BASE_SHA" =~ ^0+$ ]]; then
log_opts="$HEAD_SHA"
else
log_opts="$BASE_SHA..$HEAD_SHA"
fi
"$RUNNER_TEMP/gitleaks" detect \
--source . \
--log-opts "$log_opts" \
--redact \
--no-banner

verify:
runs-on: ubuntu-latest
steps:
Expand Down
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@

All notable changes to `@hasna/contracts` are documented here.

## [0.10.3] - 2026-08-09

- Adds thirteen strict, versioned deployment control-plane contracts covering
product projection through launch evidence, with canonical digest helpers,
linked-record validation, generated JSON Schemas, deterministic fixtures,
checksum manifests, public package exports, and packed-consumer coverage.
- Registers `hasna-deploy` as the deployment app's canonical operator binary
without widening the service-contract allowlist to arbitrary `hasna-*`
names.
- Aligns packed no-cloud scans with the existing 5 MiB source-member policy so
oversized built members are skipped instead of crashing the release gate;
bounded members remain scanned and covered by a two-sided regression.

PATCH, not minor. The deployment contracts and exports are additive, the
binary alias is a narrow compatibility addition, and the scanner change makes
packed behavior match its documented source-tree behavior.

## [0.10.2] - 2026-08-08

Ships the two commits that merged to `main` after 0.10.1:
Expand Down
3 changes: 3 additions & 0 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions generated/deployment/v1/checksums.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"contractVersion": "1.0.0",
"files": {
"fixture-bundle.json": "e6f5a998404bbdb12d31c890164961c0840de48beb921761b6489a15424412d0",
"fixtures/artifact-attestation.valid.json": "09439b2757a883b94be4d09e0ea9d58c9073616c4cf5ac8ab3f2a0aec4f64eec",
"fixtures/build-artifact.valid.json": "5a635e158079ba7fd12bf927ca807e7f7bd8af89f15206dd6c97db0d1c3141d4",
"fixtures/deployment-approval-decision.valid.json": "226e9c744243f24abe67214f3ffe0984796974306534a9636a75e183925216af",
"fixtures/deployment-attempt.valid.json": "25c2d098c70a2741d534ad3e9f9aa7e2a70cd9a1a466e36bfd3f5fb3471ce4cb",
"fixtures/deployment-plan.valid.json": "f827c78f219508c09f43686b9c619958b600739ef45a0275d5e9fde3a8880bd1",
"fixtures/deployment-receipt.valid.json": "4ef301e3485c8dc22bead5c385cd9f539d2f4845011c0b560a08ae91bb37c598",
"fixtures/deployment-request.valid.json": "47701f55f2bd4c234a5582c72e9a27b7e4e3ff56525b5f7e45ca455c2cf8dbe1",
"fixtures/environment-binding.valid.json": "7607d0000fff1b68de7e0e251c3d32ca472f22ca68cfab3297f6907594bb89a1",
"fixtures/intent-snapshot.valid.json": "f98c6e7bbbd4f25b4a1a8004cfe786b81a5d8dd42320b78ebfde727a7fb7e1b2",
"fixtures/launch-evidence.valid.json": "44445c3675fda69c10ac267124b6076dba2ae8b5528a2f2e386af84a6667975e",
"fixtures/product-projection.valid.json": "830dd826540ee9b13a00d2add27cb0b76bc339434b9136ecc3af8185c2166e73",
"fixtures/provider-receipt.valid.json": "69e4788c8a0f3464b7398401ae17af674ba36668f25d9802f6555cd6368abdc8",
"fixtures/verified-source-candidate.valid.json": "2bbe702f74c0caf3ee22399b7a1e734b39f5d122e9ea9ad791ad822eb5ba8f46",
"schema-bundle.json": "52a5593cbf77a9c4209de10425f56bcde01530ee57891c619ff8ef48ecc6dade"
},
"manifestDigest": "7bffe387d2ccaace03c1077f875387f0b895390f79b662cee223104b677f898d",
"schema": "hasna.deployment.artifact_checksums.v1"
}
Loading
Loading