Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runner API #632

Merged
merged 14 commits into from
Sep 7, 2022
Merged

Runner API #632

merged 14 commits into from
Sep 7, 2022

Conversation

ianlewis
Copy link
Member

@ianlewis ianlewis commented Jul 26, 2022

Updates #684
Fixes #771

Adds a CommandRunner that runs a set of commands. Env vars and working dir are properly captured for each command and can be included directly in buildConfig in provenance for various build types.

The Go builder is updated to use the new Runner API. Future builders like containers, ko, etc. can use this API as well.

Signed-off-by: Ian Lewis <ianlewis@google.com>
Signed-off-by: Ian Lewis <ianlewis@google.com>
Signed-off-by: Ian Lewis <ianlewis@google.com>
Signed-off-by: Ian Lewis <ianlewis@google.com>
Signed-off-by: Ian Lewis <ianlewis@google.com>
Signed-off-by: Ian Lewis <ianlewis@google.com>
Signed-off-by: Ian Lewis <ianlewis@google.com>
Signed-off-by: Ian Lewis <ianlewis@google.com>
@ianlewis ianlewis marked this pull request as ready for review September 2, 2022 05:21
Signed-off-by: Ian Lewis <ianlewis@google.com>
Signed-off-by: Ian Lewis <ianlewis@google.com>
internal/builders/go/pkg/build.go Show resolved Hide resolved
internal/runner/runner.go Show resolved Hide resolved
@ianlewis ianlewis self-assigned this Sep 7, 2022
@ianlewis ianlewis enabled auto-merge (squash) September 7, 2022 01:32
Signed-off-by: Ian Lewis <ianlewis@google.com>
@ianlewis ianlewis enabled auto-merge (squash) September 7, 2022 01:35
@ianlewis ianlewis merged commit 11f701a into slsa-framework:main Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug] Tests exit successfully even if unit tests fail
2 participants