Skip to content

docs: rerender adoption statistics #194

docs: rerender adoption statistics

docs: rerender adoption statistics #194

Workflow file for this run

name: Gitleaks
on:
push:
pull_request:
permissions:
contents: read
env:
GITLEAKS_VERSION: 8.30.1
jobs:
gitleaks:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Install gitleaks
shell: bash
run: |
set -euo pipefail
archive="gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz"
checksums="gitleaks_${GITLEAKS_VERSION}_checksums.txt"
base_url="https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}"
curl -fsSLO "${base_url}/${archive}"
curl -fsSLO "${base_url}/${checksums}"
awk -v archive="${archive}" '
$2 == archive { print; found = 1 }
END { exit found ? 0 : 1 }
' "${checksums}" | sha256sum -c -
tar -xzf "${archive}" gitleaks
sudo install -m 0755 gitleaks /usr/local/bin/gitleaks
gitleaks version
- name: Run gitleaks
run: gitleaks git --redact --verbose .