@kungfu-tech/buildchain 2.14.3-alpha.6 → 2.14.3-alpha.7
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/dist/site/buildchain-contract.json +3 -3
- package/dist/site/buildchain-site.json +4 -4
- package/dist/site/kfd-upstream-aggregate.json +1 -1
- package/dist/site/node-api-registry.json +1 -1
- package/dist/site/publication-registry.json +4 -4
- package/dist/site/site-manifest.json +4 -4
- package/package.json +1 -1
- package/packages/core/publication-control-plane-audit.js +2 -0
- package/scripts/audit-publication-control-plane.mjs +6 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"product": {
|
|
5
5
|
"name": "Buildchain",
|
|
6
6
|
"package": "@kungfu-tech/buildchain",
|
|
7
|
-
"version": "2.14.3-alpha.
|
|
7
|
+
"version": "2.14.3-alpha.7",
|
|
8
8
|
"repository": "https://github.com/kungfu-systems/buildchain"
|
|
9
9
|
},
|
|
10
10
|
"majorLine": "v2",
|
|
@@ -600,7 +600,7 @@
|
|
|
600
600
|
"agents can discover supported Node APIs without importing internal file paths"
|
|
601
601
|
],
|
|
602
602
|
"breakingDigest": "sha256:48f925608d3e2131d90936b07dc2a30341204cae3e6e785c0f77d61ad755c945",
|
|
603
|
-
"auditDigest": "sha256:
|
|
603
|
+
"auditDigest": "sha256:7d74190fd37b62acc862e5a50fa01f2888605b60404f600548a3bb32c0d8b93f"
|
|
604
604
|
},
|
|
605
605
|
{
|
|
606
606
|
"contractVersion": 1,
|
|
@@ -2830,5 +2830,5 @@
|
|
|
2830
2830
|
}
|
|
2831
2831
|
],
|
|
2832
2832
|
"compatibilityDigest": "sha256:edc3653e5cb34efd97065a6941db16140bbf375a565bbcf329d9d795bb07676f",
|
|
2833
|
-
"contractDigest": "sha256:
|
|
2833
|
+
"contractDigest": "sha256:bc4af5da2c40571f978cb16aa25370c0ffbbd08b3187c60844ebe58339f3ccae"
|
|
2834
2834
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"contract": "kungfu-buildchain-site-bundle",
|
|
4
|
-
"generatedAt": "2026-07-
|
|
5
|
-
"publishedAt": "2026-07-
|
|
4
|
+
"generatedAt": "2026-07-19T04:23:28.973Z",
|
|
5
|
+
"publishedAt": "2026-07-19T04:23:28.973Z",
|
|
6
6
|
"reproducible": true,
|
|
7
7
|
"timestampPolicy": "ci-injected",
|
|
8
8
|
"deterministicInputs": [
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"declared Buildchain surface manifest contract"
|
|
20
20
|
],
|
|
21
21
|
"sourceDateEpoch": "0",
|
|
22
|
-
"sourceRevision": "
|
|
22
|
+
"sourceRevision": "2d05819e8e90b7cb8cbf0bfee2b2b317065e4bb3",
|
|
23
23
|
"timestampPolicyDetails": {
|
|
24
24
|
"contract": "kungfu-buildchain-surface-timestamp-policy",
|
|
25
25
|
"timestampFields": [
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"package": {
|
|
39
39
|
"name": "@kungfu-tech/buildchain",
|
|
40
|
-
"version": "2.14.3-alpha.
|
|
40
|
+
"version": "2.14.3-alpha.7",
|
|
41
41
|
"versionSource": "package.json#version"
|
|
42
42
|
},
|
|
43
43
|
"source": {
|
|
@@ -281,7 +281,7 @@
|
|
|
281
281
|
"specifier": "@kungfu-tech/buildchain/publication-control-plane-audit",
|
|
282
282
|
"export": "./publication-control-plane-audit",
|
|
283
283
|
"target": "./packages/core/publication-control-plane-audit.js",
|
|
284
|
-
"digest": "sha256:
|
|
284
|
+
"digest": "sha256:3c082cdfea7bda55bd6d389dce140f1f359917c68ecf4e64eb6f2defa77cc03c",
|
|
285
285
|
"summary": "Read-only publication control-plane snapshot evaluation APIs.",
|
|
286
286
|
"capabilityGroup": "release-passport-trust",
|
|
287
287
|
"audience": [
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"contract": "kungfu-buildchain-publication-release-registry",
|
|
4
|
-
"generatedAt": "2026-07-
|
|
5
|
-
"publishedAt": "2026-07-
|
|
4
|
+
"generatedAt": "2026-07-19T04:23:28.973Z",
|
|
5
|
+
"publishedAt": "2026-07-19T04:23:28.973Z",
|
|
6
6
|
"reproducible": true,
|
|
7
7
|
"timestampPolicy": "ci-injected",
|
|
8
8
|
"deterministicInputs": [
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"declared Buildchain surface manifest contract"
|
|
20
20
|
],
|
|
21
21
|
"sourceDateEpoch": "0",
|
|
22
|
-
"sourceRevision": "
|
|
22
|
+
"sourceRevision": "2d05819e8e90b7cb8cbf0bfee2b2b317065e4bb3",
|
|
23
23
|
"timestampPolicyDetails": {
|
|
24
24
|
"contract": "kungfu-buildchain-surface-timestamp-policy",
|
|
25
25
|
"timestampFields": [
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"package": {
|
|
34
34
|
"name": "@kungfu-tech/buildchain",
|
|
35
|
-
"version": "2.14.3-alpha.
|
|
35
|
+
"version": "2.14.3-alpha.7",
|
|
36
36
|
"versionSource": "package.json#version"
|
|
37
37
|
},
|
|
38
38
|
"sourceKind": "package-site-bundle",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"contract": "kungfu-buildchain-site-manifest",
|
|
4
|
-
"generatedAt": "2026-07-
|
|
5
|
-
"publishedAt": "2026-07-
|
|
4
|
+
"generatedAt": "2026-07-19T04:23:28.973Z",
|
|
5
|
+
"publishedAt": "2026-07-19T04:23:28.973Z",
|
|
6
6
|
"reproducible": true,
|
|
7
7
|
"timestampPolicy": "ci-injected",
|
|
8
8
|
"deterministicInputs": [
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"declared Buildchain surface manifest contract"
|
|
20
20
|
],
|
|
21
21
|
"sourceDateEpoch": "0",
|
|
22
|
-
"sourceRevision": "
|
|
22
|
+
"sourceRevision": "2d05819e8e90b7cb8cbf0bfee2b2b317065e4bb3",
|
|
23
23
|
"timestampPolicyDetails": {
|
|
24
24
|
"contract": "kungfu-buildchain-surface-timestamp-policy",
|
|
25
25
|
"timestampFields": [
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"package": {
|
|
39
39
|
"name": "@kungfu-tech/buildchain",
|
|
40
|
-
"version": "2.14.3-alpha.
|
|
40
|
+
"version": "2.14.3-alpha.7",
|
|
41
41
|
"versionSource": "package.json#version"
|
|
42
42
|
},
|
|
43
43
|
"entrypoint": "buildchain-site.json",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kungfu-tech/buildchain",
|
|
3
|
-
"version": "2.14.3-alpha.
|
|
3
|
+
"version": "2.14.3-alpha.7",
|
|
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",
|
|
@@ -76,6 +76,8 @@ export function evaluatePublicationControlPlaneSnapshot({
|
|
|
76
76
|
branchPolicy.requiredStatusCheck === requiredStatusCheck &&
|
|
77
77
|
branchPolicy.requiredStatusChecks.includes(requiredStatusCheck) &&
|
|
78
78
|
branchPolicy.requiredCheckPassed === true &&
|
|
79
|
+
/^[0-9a-f]{40}$/i.test(String(branchPolicy.requiredCheckSha || "")) &&
|
|
80
|
+
branchPolicy.requiredCheckSha === branchPolicy.pullRequestHeadSha &&
|
|
79
81
|
branchPolicy.sourceSha === branchPolicy.headSha &&
|
|
80
82
|
branchPolicy.mergedPullRequest === true &&
|
|
81
83
|
branchPolicy.baseRef === branch &&
|
|
@@ -278,7 +278,10 @@ function main() {
|
|
|
278
278
|
const independentApprovals = [...latestReviews.values()].filter((review) =>
|
|
279
279
|
review.state === "APPROVED" && review.user?.login !== mergedPullRequest?.user?.login
|
|
280
280
|
);
|
|
281
|
-
const
|
|
281
|
+
const pullRequestHeadSha = String(mergedPullRequest?.head?.sha || "").toLowerCase();
|
|
282
|
+
const checkRuns = /^[0-9a-f]{40}$/.test(pullRequestHeadSha)
|
|
283
|
+
? githubJson(`repos/${repository}/commits/${pullRequestHeadSha}/check-runs?per_page=100`, "merged pull-request head check runs")
|
|
284
|
+
: { check_runs: [] };
|
|
282
285
|
const requiredStatusCheckPolicy = branchState.protection?.required_status_checks || {};
|
|
283
286
|
const requiredStatusChecks = requiredStatusCheckPolicy.contexts || [];
|
|
284
287
|
const requiredCheckSource = (requiredStatusCheckPolicy.checks || []).find((entry) => entry.context === requiredStatusCheck);
|
|
@@ -295,10 +298,12 @@ function main() {
|
|
|
295
298
|
(!requiredCheckSource?.app_id || entry.app?.id === requiredCheckSource.app_id)
|
|
296
299
|
),
|
|
297
300
|
requiredCheckAppId: requiredCheckSource?.app_id || 0,
|
|
301
|
+
requiredCheckSha: pullRequestHeadSha,
|
|
298
302
|
sourceSha,
|
|
299
303
|
headSha: String(branchState.commit?.sha || "").toLowerCase(),
|
|
300
304
|
mergedPullRequest: Boolean(mergedPullRequest),
|
|
301
305
|
pullRequestNumber: mergedPullRequest?.number || 0,
|
|
306
|
+
pullRequestHeadSha,
|
|
302
307
|
baseRef: mergedPullRequest?.base?.ref || "",
|
|
303
308
|
headRepository: mergedPullRequest?.head?.repo?.full_name || "",
|
|
304
309
|
approvalCount: independentApprovals.length,
|