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

fix: allow users to properly use the file input over the default path value #471

Merged
merged 1 commit into from
May 30, 2024

Conversation

komish
Copy link
Contributor

@komish komish commented May 30, 2024

Fixes #389

This PR reorders conditional logic that appends image/dir/file information to the syft command such that the file input to the action is parsed before the path input.

The path input has a default value (see: https://github.com/anchore/sbom-action/blob/main/action.yml#L11), and the conditional logic (modified in this PR) would see the path value is set to . (even if the user didn't provide a value) and add it to the run command. This is short-circuiting the if/else, so nothing else (in the same block) gets included in the run command.

@kzantow kzantow merged commit 72370e1 into anchore:main May 30, 2024
6 checks passed
@kzantow
Copy link
Contributor

kzantow commented May 30, 2024

Thanks @komish! 🥳

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.

file option not working
2 participants