Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/download-latest-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ echo "release-yaml=/tmp/release.yaml" >>"${GITHUB_OUTPUT}"
# look at the first image, download the entrypoint to determine the Go version
image="$(grep ghcr.io /tmp/release.yaml | sed -E 's/(image|value)://' | tr -d ' ' | head -n 1)"
entrypoint="$(crane config "${image}" | jq -r '.config.Entrypoint[0]')"
crane export "${image}" - | tar -xf - -C /tmp "${entrypoint}"
crane export "${image}" - | tar -xf - -C /tmp "${entrypoint:1}"
goVersion="$(go version "/tmp${entrypoint}" | sed "s#/tmp${entrypoint}: go##")"
goVersion="${goVersion:0:4}"
echo "[INFO] Go version is ${goVersion}"
Expand Down
4 changes: 2 additions & 2 deletions .github/report-release-vulnerabilities.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ for image in "${images[@]}"; do
# Go vulnerabilities
echo " [INFO] Checking for Go vulnerabilities"
echo "### Go vulnerabilities" >>/tmp/report.md
crane export "${image}" - | tar -xf - -C /tmp "${entrypoint}"
crane export "${image}" - | tar -xf - -C /tmp "${entrypoint:1}"
goVulns="$(govulncheck -format json -mode binary "/tmp${entrypoint}")"
goVulnsFound=false
cat /tmp/image.tar | crane export - - | tar -xf - -C /tmp "${entrypoint}"
cat /tmp/image.tar | crane export - - | tar -xf - -C /tmp "${entrypoint:1}"
goVulnsLatest="$(govulncheck -format json -mode binary "/tmp${entrypoint}")"
rm -f /tmp/image.tar "/tmp${entrypoint}"
while read -r id pkg vulnerableVersion fixedVersion; do
Expand Down
Loading