Skip to content

Commit f5f1e49

Browse files
committed
[scripts] Verify artifact integrity when downloading (#32728)
Uses https://cli.github.com/manual/gh_attestation_verify to verify that the downloaded artifact matches the attestation generated during the build process in runtime_commit_artifacts. Example: On a workflow run of runtime_build_and_test.yml with no attestations: ``` $ scripts/release/download-experimental-build.js --commit=ea5f065745b777cb41cc9e54a3b29ed8c727a574 Command failed: gh attestation verify artifacts_combined.zip --repo=facebook/react Error: failed to fetch attestations from facebook/react: HTTP 404: Not Found (https://api.github.com/repos/facebook/react/attestations/sha256:7adba0992ba477a927aad5a07f95ee2deb7d18427c84279d33fc40a3bc28ebaa?per_page=30) `gh attestation verify artifacts_combined.zip --repo=facebook/react` (exited with error code 1) ``` On one which does: ``` $ scripts/release/download-experimental-build.js --commit=12e85d74c1c233cdc2f3228a97473a4435d50c3b ✓ Downloading artifacts from GitHub for commit 12e85d7) 10.5 secs An experimental build has been downloaded! You can download this build again by running: scripts/download-experimental-build.js --commit=12e85d74c1c233cdc2f3228a97473a4435d50c3b ``` --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/32728). * #32729 * __->__ #32728 DiffTrain build for [7e4c258](7e4c258)
1 parent 8e00114 commit f5f1e49

35 files changed

+387
-377
lines changed

compiled/eslint-plugin-react-hooks/index.js

Lines changed: 301 additions & 291 deletions
Large diffs are not rendered by default.

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
07276b8682059cd310cedf574c7f3ecddce68f5c
1+
7e4c258e160d3a2ca690b44a5938271873919ee1
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
07276b8682059cd310cedf574c7f3ecddce68f5c
1+
7e4c258e160d3a2ca690b44a5938271873919ee1

compiled/facebook-www/React-dev.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1537,7 +1537,7 @@ __DEV__ &&
15371537
exports.useTransition = function () {
15381538
return resolveDispatcher().useTransition();
15391539
};
1540-
exports.version = "19.1.0-www-classic-07276b86-20250324";
1540+
exports.version = "19.1.0-www-classic-7e4c258e-20250324";
15411541
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
15421542
"function" ===
15431543
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-dev.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1537,7 +1537,7 @@ __DEV__ &&
15371537
exports.useTransition = function () {
15381538
return resolveDispatcher().useTransition();
15391539
};
1540-
exports.version = "19.1.0-www-modern-07276b86-20250324";
1540+
exports.version = "19.1.0-www-modern-7e4c258e-20250324";
15411541
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
15421542
"function" ===
15431543
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-prod.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,4 +641,4 @@ exports.useSyncExternalStore = function (
641641
exports.useTransition = function () {
642642
return ReactSharedInternals.H.useTransition();
643643
};
644-
exports.version = "19.1.0-www-classic-07276b86-20250324";
644+
exports.version = "19.1.0-www-classic-7e4c258e-20250324";

compiled/facebook-www/React-prod.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,4 +641,4 @@ exports.useSyncExternalStore = function (
641641
exports.useTransition = function () {
642642
return ReactSharedInternals.H.useTransition();
643643
};
644-
exports.version = "19.1.0-www-modern-07276b86-20250324";
644+
exports.version = "19.1.0-www-modern-7e4c258e-20250324";

compiled/facebook-www/React-profiling.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ exports.useSyncExternalStore = function (
645645
exports.useTransition = function () {
646646
return ReactSharedInternals.H.useTransition();
647647
};
648-
exports.version = "19.1.0-www-classic-07276b86-20250324";
648+
exports.version = "19.1.0-www-classic-7e4c258e-20250324";
649649
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
650650
"function" ===
651651
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-profiling.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ exports.useSyncExternalStore = function (
645645
exports.useTransition = function () {
646646
return ReactSharedInternals.H.useTransition();
647647
};
648-
exports.version = "19.1.0-www-modern-07276b86-20250324";
648+
exports.version = "19.1.0-www-modern-7e4c258e-20250324";
649649
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
650650
"function" ===
651651
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactART-dev.classic.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18474,10 +18474,10 @@ __DEV__ &&
1847418474
(function () {
1847518475
var internals = {
1847618476
bundleType: 1,
18477-
version: "19.1.0-www-classic-07276b86-20250324",
18477+
version: "19.1.0-www-classic-7e4c258e-20250324",
1847818478
rendererPackageName: "react-art",
1847918479
currentDispatcherRef: ReactSharedInternals,
18480-
reconcilerVersion: "19.1.0-www-classic-07276b86-20250324"
18480+
reconcilerVersion: "19.1.0-www-classic-7e4c258e-20250324"
1848118481
};
1848218482
internals.overrideHookState = overrideHookState;
1848318483
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -18511,7 +18511,7 @@ __DEV__ &&
1851118511
exports.Shape = Shape;
1851218512
exports.Surface = Surface;
1851318513
exports.Text = Text;
18514-
exports.version = "19.1.0-www-classic-07276b86-20250324";
18514+
exports.version = "19.1.0-www-classic-7e4c258e-20250324";
1851518515
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1851618516
"function" ===
1851718517
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)