-
Notifications
You must be signed in to change notification settings - Fork 83
fix: download grype on windows runners #315
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: download grype on windows runners #315
Conversation
Signed-off-by: Keith Zantow <[email protected]>
9ade014 to
b13c331
Compare
Signed-off-by: Keith Zantow <[email protected]>
Signed-off-by: Keith Zantow <[email protected]>
00ce720 to
e0a00e3
Compare
Signed-off-by: Keith Zantow <[email protected]>
Signed-off-by: Keith Zantow <[email protected]>
Signed-off-by: Keith Zantow <[email protected]>
Signed-off-by: Keith Zantow <[email protected]>
Signed-off-by: Keith Zantow <[email protected]>
.github/workflows/test.yml
Outdated
| fail-build: false | ||
|
|
||
| - name: Validate file exists | ||
| run: ls '${{ steps.scan.outputs.sarif }}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to double-check up the return code of ls if passed a non-existent file. On Linux, I think test -f might be a cleaner test (though test isn't available on Windows).
Not blocking though - this works.
.github/workflows/test.yml
Outdated
| fail-build: false | ||
|
|
||
| - name: Validate file exists | ||
| run: ls '${{ steps.scan.outputs.sarif }}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just want to double-check that this way of checking whether a file exists works on Windows - don't have a windows machine in front of me to check myself.
Specifically, can you make sure that ls some-non-existent-file on Windows exits non-zero?
Signed-off-by: Keith Zantow <[email protected]>
Signed-off-by: Keith Zantow <[email protected]>
42c30ab to
ff87f3f
Compare
Signed-off-by: Keith Zantow <[email protected]>
Signed-off-by: Keith Zantow <[email protected]>
Signed-off-by: Keith Zantow <[email protected]>
Signed-off-by: Keith Zantow <[email protected]>
Signed-off-by: Keith Zantow <[email protected]>
When running this action on Windows, we need to account for the
.exefile suffix.Fixes: #313