-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix stage0_bin failing in GH Action SLSA generator
Change-Id: I0db40f70db1117188246f9f3fc1210b79f2aa68b
- Loading branch information
Showing
2 changed files
with
9 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,5 @@ | ||
# This is the static build configuration that we use with the docker-based SLSA3 generator for | ||
# building the `stage0` binary, and its provenance. | ||
# See https://github.com/slsa-framework/slsa-github-generator/tree/main/internal/builders/docker. | ||
command = [ | ||
"nix", | ||
"develop", | ||
".#rust", | ||
"--command", | ||
"env", | ||
"--chdir=stage0_bin", | ||
"cargo", | ||
"objcopy", | ||
"--release", | ||
"--", | ||
"--output-target=binary", | ||
"target/x86_64-unknown-none/release/stage0_bin", | ||
] | ||
command = ["nix", "develop", ".#rust", "--command", "just", "stage0_bin"] | ||
artifact_path = "./stage0_bin/target/x86_64-unknown-none/release/stage0_bin" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
# TODO: b/333745447 - Merge this dir with ./buildconfigs, replacing the provenance's counterparts there. | ||
# This is the static build configuration that we use `slsa-github-generator` to | ||
# create a provenance that lists the predicted attestation measurements as subjects. | ||
command = ["just", "stage0_provenance_subjects"] | ||
command = [ | ||
"nix", | ||
"develop", | ||
".#rust", | ||
"--command", | ||
"just", | ||
"stage0_provenance_subjects" | ||
] | ||
artifact_path = "./stage0_bin/bin/subjects/*" |