-
Notifications
You must be signed in to change notification settings - Fork 77
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
fix: download grype on windows runners #315
Conversation
Signed-off-by: Keith Zantow <kzantow@gmail.com>
9ade014
to
b13c331
Compare
Signed-off-by: Keith Zantow <kzantow@gmail.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
00ce720
to
e0a00e3
Compare
Signed-off-by: Keith Zantow <kzantow@gmail.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
.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 <kzantow@gmail.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
42c30ab
to
ff87f3f
Compare
Signed-off-by: Keith Zantow <kzantow@gmail.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
When running this action on Windows, we need to account for the
.exe
file suffix.Fixes: #313