mirror of
https://github.com/usestrix/strix.git
synced 2026-11-15 09:11:26 +00:00
fix(sandbox): resolve the gitleaks release tag without the GitHub API
This commit is contained in:
parent
f4276f07b3
commit
0e4387fc61
1 changed files with 1 additions and 1 deletions
|
|
@ -186,7 +186,7 @@ RUN set -eux; \
|
|||
aarch64|arm64) GITLEAKS_ARCH="arm64" ;; \
|
||||
*) echo "Unsupported architecture: $ARCH" >&2; exit 1 ;; \
|
||||
esac; \
|
||||
TAG="$(curl -fsSL https://api.github.com/repos/gitleaks/gitleaks/releases/latest | jq -r .tag_name)"; \
|
||||
TAG="$(curl -fsSLI -o /dev/null -w '%{url_effective}' https://github.com/gitleaks/gitleaks/releases/latest | sed 's#.*/##')"; \
|
||||
curl -fsSL "https://github.com/gitleaks/gitleaks/releases/download/${TAG}/gitleaks_${TAG#v}_linux_${GITLEAKS_ARCH}.tar.gz" -o /tmp/gitleaks.tgz; \
|
||||
tar -xzf /tmp/gitleaks.tgz -C /tmp; \
|
||||
install -m 0755 /tmp/gitleaks /usr/local/bin/gitleaks; \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue