Install Syft in CI build machine

This commit is contained in:
Neeraj Gupta 2023-10-25 18:09:17 +05:30
parent 7a8de8fc4b
commit ae13d8557b

View file

@ -16,6 +16,11 @@ jobs:
with:
fetch-depth: 0 # Important to ensure that GoReleaser works correctly
- name: Install latest Syft
run: |
wget $(curl -s https://api.github.com/repos/anchore/syft/releases/latest | grep 'browser_' | grep 'linux_amd64.rpm' | cut -d\" -f4) -O syft_latest_linux_amd64.rpm
sudo rpm -i syft_latest_linux_amd64.rpm
- name: Set up Go
uses: actions/setup-go@v4
with: