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

test: add v1.4.0 build tests for gha_go gha_generic and gha_generic_container #439

Merged
merged 3 commits into from
Jan 17, 2023

Conversation

asraa
Copy link
Contributor

@asraa asraa commented Jan 11, 2023

Adds v1.4.0 builder tests for github builders.

@ianlewis there aren't currently any tag matches for gha_generic_container. Want me to add in a follow-up?

@laurentsimon should this line be commented out? https://github.com/slsa-framework/slsa-verifier/blob/main/cli/slsa-verifier/main_regression_test.go#L587. Testing the outBuilderID against @${TAG} doesn't work for GHA, but it does for GCB. If so, should I remove these comments for GHA artifact/image?

Signed-off-by: Asra Ali [email protected]

@laurentsimon
Copy link
Contributor

@laurentsimon should this line be commented out? https://github.com/slsa-framework/slsa-verifier/blob/main/cli/slsa-verifier/main_regression_test.go#L587. Testing the outBuilderID against @${TAG} doesn't work for GHA, but it does for GCB.

Is that a bug I should fix then?

Copy link
Contributor

@laurentsimon laurentsimon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Will let @ianlewis provide the final LGTM since he knows that part of the code better than I do

@asraa
Copy link
Contributor Author

asraa commented Jan 11, 2023

Is that a bug I should fix then?

I think it's just a issue in the test code. Providing the --builder-id for GHA seems to work with @${TAG}, @refs/head/${TAG} and no tag.

I'll file an issue for that to track.

Signed-off-by: Asra Ali <[email protected]>
@asraa
Copy link
Contributor Author

asraa commented Jan 12, 2023

can you please take a look when you have a chance (esp at the comment)? @ianlewis

@ianlewis
Copy link
Member

can you please take a look when you have a chance (esp at the comment)? @ianlewis

Sorry, I did see this but I didn't get to it yesterday.

Thanks. Will let @ianlewis provide the final LGTM since he knows that part of the code better than I do

I do?!?! 😵‍💫

@ianlewis there aren't currently any tag matches for gha_generic_container. Want me to add in a follow-up?

I'm not sure I know what you mean. Are you saying that we have a "tag no match empty tag workflow_dispatch" test but not one that matches the tag successfully?

If so, then yes please do add in follow up.

I think it's just a issue in the test code. Providing the --builder-id for GHA seems to work with @${TAG}, @refs/head/${TAG} and no tag.

I'll file an issue for that to track.

Please add a TODO(issue url) comment after the issue's been created.

@ianlewis
Copy link
Member

BTW, related to slsa-framework/slsa-github-generator#1110

@asraa
Copy link
Contributor Author

asraa commented Jan 17, 2023

Are you saying that we have a "tag no match empty tag workflow_dispatch" test but not one that matches the tag successfully?

yes exactly! they are generated in example-package, but the tests just aren't written. Will update in a min.

@asraa asraa enabled auto-merge (squash) January 17, 2023 16:34
@asraa asraa merged commit 703fca0 into slsa-framework:main Jan 17, 2023
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.

3 participants