@kungfu-tech/buildchain 2.8.8-alpha.4 → 2.8.8-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/actions/promote-buildchain-ref/README.md +7 -0
- package/dist/site/buildchain-contract.json +5 -5
- package/dist/site/buildchain-site.json +14 -14
- package/dist/site/manual-registry.json +4 -4
- package/dist/site/page-registry.json +10 -10
- package/dist/site/site-manifest.json +4 -4
- package/docs/lifecycle-protocol.md +6 -4
- package/docs/publish-transaction.md +4 -1
- package/docs/release-governance.md +5 -2
- package/docs/reusable-build-surface.md +7 -3
- package/package.json +1 -1
- package/scripts/check-inventory.mjs +2 -0
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"path": "docs/lifecycle-protocol.md",
|
|
128
128
|
"plane": "use",
|
|
129
129
|
"exists": true,
|
|
130
|
-
"digest": "sha256:
|
|
130
|
+
"digest": "sha256:43dcaaa53efa8b7e6cdcdaa92a0d39d3ee263b840ed2bfea0a47fe4af922cd59"
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
133
|
"id": "reusable-build-surface",
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"path": "docs/reusable-build-surface.md",
|
|
136
136
|
"plane": "use",
|
|
137
137
|
"exists": true,
|
|
138
|
-
"digest": "sha256:
|
|
138
|
+
"digest": "sha256:165011e2a932461805925c714c2c1c07f1ee60c4b3a614b6dcdda4b81ec22d68"
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
141
|
"id": "publish-transaction",
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
"path": "docs/publish-transaction.md",
|
|
144
144
|
"plane": "verify",
|
|
145
145
|
"exists": true,
|
|
146
|
-
"digest": "sha256:
|
|
146
|
+
"digest": "sha256:94844f7bb38dbd85c02f1bc9d55e34dcebd9fc96585789766e8075ac635bc6c0"
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
149
|
"id": "release-governance",
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
"path": "docs/release-governance.md",
|
|
152
152
|
"plane": "why",
|
|
153
153
|
"exists": true,
|
|
154
|
-
"digest": "sha256:
|
|
154
|
+
"digest": "sha256:7fb654a147104125eccbbbcccdeb28c5cad5a6097731e560e72919b9231f985f"
|
|
155
155
|
},
|
|
156
156
|
{
|
|
157
157
|
"id": "release-flow",
|
|
@@ -250,10 +250,12 @@ checks, and admin enforcement for human channel changes, but adds the
|
|
|
250
250
|
authenticated promotion token user or app to the managed bypass allowlist for
|
|
251
251
|
generated release bookkeeping. Buildchain also creates the configured required
|
|
252
252
|
check on the exact generated version-state commit before patching the protected
|
|
253
|
-
ref,
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
253
|
+
ref, then applies the protected ref update with the declared generated ref
|
|
254
|
+
update token. The reusable wrapper uses
|
|
255
|
+
`secrets.BUILDCHAIN_PROMOTION_TOKEN || github.token` for that protected
|
|
256
|
+
bookkeeping update. If the direct generated update is rejected, promotion fails
|
|
257
|
+
with a token/protection diagnostic instead of asking humans to review a
|
|
258
|
+
post-publish version-state PR.
|
|
257
259
|
|
|
258
260
|
For `version.strategy = "anchored"` with `version.next = "manual"`, release
|
|
259
261
|
promotion does not generate a Buildchain-owned version-state commit. In that
|
|
@@ -293,7 +293,10 @@ Buildchain-managed promotions must finish generated version-state bookkeeping
|
|
|
293
293
|
with the promotion token directly; they must not require a post-publish human
|
|
294
294
|
PR. Before patching a protected generated bookkeeping ref, Buildchain emits the
|
|
295
295
|
configured required check on the exact generated version-state commit so strict
|
|
296
|
-
branch protection can validate the automation path without a second build
|
|
296
|
+
branch protection can validate the automation path without a second build, then
|
|
297
|
+
uses the generated ref update token for the protected ref PATCH. The reusable
|
|
298
|
+
wrapper defaults that token to `secrets.BUILDCHAIN_PROMOTION_TOKEN ||
|
|
299
|
+
github.token`.
|
|
297
300
|
|
|
298
301
|
If finalization fails after an exact Git tag, a channel branch, or dev/alpha
|
|
299
302
|
sync ref has already moved, the next run reads the durable `finalizing` state
|
|
@@ -416,8 +416,11 @@ token's authenticated user or app to the managed bypass allowlist. Before
|
|
|
416
416
|
patching a protected generated bookkeeping ref, the action creates the
|
|
417
417
|
configured required check on the exact generated version-state commit, so strict
|
|
418
418
|
status checks are satisfied by machine-verifiable Buildchain evidence rather
|
|
419
|
-
than a human PR.
|
|
420
|
-
|
|
419
|
+
than a human PR. The protected ref PATCH itself uses the generated ref update
|
|
420
|
+
token; the reusable wrapper defaults it to
|
|
421
|
+
`secrets.BUILDCHAIN_PROMOTION_TOKEN || github.token`. If direct generated
|
|
422
|
+
bookkeeping is still rejected, Buildchain fails with a token/protection
|
|
423
|
+
diagnostic instead of creating a post-publish PR.
|
|
421
424
|
Buildchain's own promotion workflow reads `BUILDCHAIN_PROMOTION_BYPASS_APPS`,
|
|
422
425
|
`BUILDCHAIN_PROMOTION_BYPASS_USERS`, and
|
|
423
426
|
`BUILDCHAIN_PROMOTION_BYPASS_TEAMS` repository variables so the declared bypass
|
|
@@ -515,9 +515,13 @@ so the workflow automation can apply generated version-state and channel
|
|
|
515
515
|
bookkeeping on protected `dev`/`alpha`/`release` branches after the reviewed
|
|
516
516
|
channel PR has merged; consumers using a different promotion identity can pass
|
|
517
517
|
`branch-protection-bypass-users`, `branch-protection-bypass-teams`, or a
|
|
518
|
-
different app slug declaratively.
|
|
519
|
-
|
|
520
|
-
|
|
518
|
+
different app slug declaratively. The wrapper uses
|
|
519
|
+
`secrets.BUILDCHAIN_PROMOTION_TOKEN || github.token` as the generated ref update
|
|
520
|
+
token for protected bookkeeping PATCH calls, so a bypass-capable promotion token
|
|
521
|
+
can sync dev immediately after alpha/release publish without a post-publish PR.
|
|
522
|
+
It does not call `.build.yml`, does not create a matrix, and must fail before
|
|
523
|
+
publish if the RC evidence, payload set, or source-lock ref is missing or
|
|
524
|
+
ambiguous.
|
|
521
525
|
|
|
522
526
|
```yaml
|
|
523
527
|
jobs:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kungfu-tech/buildchain",
|
|
3
|
-
"version": "2.8.8-alpha.
|
|
3
|
+
"version": "2.8.8-alpha.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Buildchain Release Passport, release governance, CLI toolkit, and site facts.",
|
|
6
6
|
"repository": "https://github.com/kungfu-systems/buildchain",
|
|
@@ -440,6 +440,8 @@ for (const requiredSnippet of [
|
|
|
440
440
|
"actions: read",
|
|
441
441
|
"uses: ./.github/workflows/release-candidate-promote.yml",
|
|
442
442
|
"github.event.workflow_run.event == 'push'",
|
|
443
|
+
"!startsWith(github.event.workflow_run.display_title, 'chore(release): prepare v')",
|
|
444
|
+
"!startsWith(github.event.workflow_run.display_title, 'chore(release): release v')",
|
|
443
445
|
"target-sha: ${{ github.event.workflow_run.head_sha || inputs.sha || github.sha }}",
|
|
444
446
|
"github-release: true",
|
|
445
447
|
"release-passport-buildchain-self-kfd: true",
|