Skip to content

Commit

Permalink
Merge pull request #28 from redhatrises/remove_api
Browse files Browse the repository at this point in the history
fix: remove usage of github API url
  • Loading branch information
carlosmmatos authored Mar 25, 2024
2 parents 0effa2f + ecba7e7 commit 9c6b4d9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ install_image_scan() {
local cs_py="cs_scanimage.py"
if [[ ! -f "$GITHUB_ACTION_PATH/$cs_py" ]]; then
echo "Installing container-image-scan..."
local latest_pkg=$(curl -s https://api.github.com/repos/crowdstrike/container-image-scan/releases/latest | jq -r '.assets[0].browser_download_url')
curl -sSLo scan.tar.gz ${latest_pkg}
curl -sSLo scan.tar.gz https:/CrowdStrike/container-image-scan/releases/latest/download/scan.tar.gz
tar -xzf scan.tar.gz
rm -f scan.tar.gz
fi
Expand Down

0 comments on commit 9c6b4d9

Please sign in to comment.