Skip to content

Commit

Permalink
Fix stage0_bin failing in GH Action SLSA generator
Browse files Browse the repository at this point in the history
Change-Id: I0db40f70db1117188246f9f3fc1210b79f2aa68b
  • Loading branch information
jul-sh committed Apr 23, 2024
1 parent 72b0969 commit 9af829d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
15 changes: 1 addition & 14 deletions buildconfigs/stage0_bin.toml
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"
9 changes: 8 additions & 1 deletion buildconfigs_full_provenance/stage0_bin.toml
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/*"

0 comments on commit 9af829d

Please sign in to comment.