Skip to content

Commit

Permalink
feat: read arch from environment
Browse files Browse the repository at this point in the history
Read the runner's arch from the RUNNER_ARCH environment variable, rather
than hard-coding the current default.

Fixes #38

Signed-off-by: Joshua Lock <jlock@vmware.com>
  • Loading branch information
joshuagl committed Apr 25, 2022
1 parent 19c6001 commit 35295de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/provenance.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func GenerateProvenance(name, digest, ghContext, command, envs string) ([]byte,
},
// Non user-controllable environment vars needed to reproduce the build.
Environment: map[string]interface{}{
"arch": "amd64", // TODO: Does GitHub run actually expose this?
"arch": os.Getenv("RUNNER_ARCH"),
"os": os.Getenv("ImageOS"),
"github_event_name": gh.EventName,
"github_run_number": gh.RunNumber,
Expand Down

0 comments on commit 35295de

Please sign in to comment.