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

Return an error if repo/ref not detected #382

Merged
merged 5 commits into from
Jun 24, 2022

Conversation

ianlewis
Copy link
Member

@ianlewis ianlewis commented Jun 23, 2022

Related #376

I'm not sure why but it seems that in pull_requests (even though we don't really support them, and possibly other triggers) sometimes the detect-workflow action returns empty strings in the repository and/or ref outputs without producing an error. If fed directly into a later checkout action this checks out the repository in the github context (not the slsa-github-generator) repo.

This PR causes the detect-workflow action to return an error if no repository or ref are found.

@ianlewis ianlewis changed the title return an error if repo/ref not detected Return an error if repo/ref not detected Jun 23, 2022
@ianlewis ianlewis marked this pull request as ready for review June 23, 2022 02:15
Copy link
Collaborator

@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.

Thans!

@laurentsimon laurentsimon enabled auto-merge (squash) June 24, 2022 16:02
@laurentsimon laurentsimon merged commit 056b3f1 into slsa-framework:main Jun 24, 2022
@ianlewis ianlewis deleted the detect-env-empty-outputs branch July 27, 2022 01:23
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.

2 participants