ci: support x86 in the checks
All checks were successful
actionlint check / actionlint check (pull_request) Successful in 22s
conventional pull request title check / conventional pull request title check (pull_request) Successful in 1m8s
dotenv-linter check / dotenv-linter check (pull_request) Successful in 56s
conventional commit messages check / conventional commit messages check (pull_request) Successful in 1m15s
GitLeaks check / GitLeaks check (pull_request) Successful in 12s
hadolint check / hadolint check (pull_request) Successful in 21s
markdownlint check / markdownlint check (pull_request) Successful in 35s
htmlhint check / htmlhint check (pull_request) Successful in 41s
Prettier check / Prettier check (pull_request) Successful in 28s
ShellCheck check / ShellCheck check (pull_request) Successful in 46s
Stylelint check / Stylelint check (pull_request) Successful in 42s
checkov check / checkov check (pull_request) Successful in 2m48s
yamllint check / yamllint check (pull_request) Successful in 45s
Rust check / Rust check (pull_request) Successful in 17m53s
All checks were successful
actionlint check / actionlint check (pull_request) Successful in 22s
conventional pull request title check / conventional pull request title check (pull_request) Successful in 1m8s
dotenv-linter check / dotenv-linter check (pull_request) Successful in 56s
conventional commit messages check / conventional commit messages check (pull_request) Successful in 1m15s
GitLeaks check / GitLeaks check (pull_request) Successful in 12s
hadolint check / hadolint check (pull_request) Successful in 21s
markdownlint check / markdownlint check (pull_request) Successful in 35s
htmlhint check / htmlhint check (pull_request) Successful in 41s
Prettier check / Prettier check (pull_request) Successful in 28s
ShellCheck check / ShellCheck check (pull_request) Successful in 46s
Stylelint check / Stylelint check (pull_request) Successful in 42s
checkov check / checkov check (pull_request) Successful in 2m48s
yamllint check / yamllint check (pull_request) Successful in 45s
Rust check / Rust check (pull_request) Successful in 17m53s
This commit is contained in:
17
.github/workflows/gitleaks-check.yaml
vendored
17
.github/workflows/gitleaks-check.yaml
vendored
@@ -22,10 +22,21 @@ jobs:
|
||||
run: |
|
||||
set -e
|
||||
|
||||
VERSION="v8.22.0"
|
||||
CHECKSUM="3f95fef7e361adafed2b1bb9c591ba3bc6b595b4f296b346257301b7bf04be15 gitleaks.tar.gz"
|
||||
VERSION="8.22.0"
|
||||
|
||||
wget -O "gitleaks.tar.gz" "https://github.com/gitleaks/gitleaks/releases/download/$VERSION/gitleaks_8.22.0_linux_arm64.tar.gz"
|
||||
ARCH="$(uname -m)"
|
||||
if [ "$ARCH" = "x86_64" ] || [ "$ARCH" = "amd64" ]; then
|
||||
TARBALL="gitleaks_${VERSION}_linux_x64.tar.gz"
|
||||
CHECKSUM="ad66410e1e0bf262f864b6837b09cfa585f6b5816164023ee64847d3f7415eed gitleaks.tar.gz"
|
||||
elif [ "$ARCH" = "aarch64" ] || [ "$ARCH" = "arm64" ]; then
|
||||
TARBALL="gitleaks_${VERSION}_linux_arm64.tar.gz"
|
||||
CHECKSUM="3f95fef7e361adafed2b1bb9c591ba3bc6b595b4f296b346257301b7bf04be15 gitleaks.tar.gz"
|
||||
else
|
||||
echo "Unsupported architecture: $ARCH" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
wget -O "gitleaks.tar.gz" "https://github.com/gitleaks/gitleaks/releases/download/v${VERSION}/${TARBALL}"
|
||||
echo "$CHECKSUM" | sha256sum --check
|
||||
|
||||
tar xzf gitleaks.tar.gz
|
||||
|
||||
Reference in New Issue
Block a user