We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a489b4 commit baa8a88Copy full SHA for baa8a88
.github/workflows/security.yml
@@ -73,7 +73,8 @@ jobs:
73
74
- name: Install gitleaks
75
run: |
76
- curl -sSfL https://github.com/gitleaks/gitleaks/releases/latest/download/gitleaks_8.24.0_linux_x64.tar.gz | tar -xz
+ GITLEAKS_VERSION=$(curl -s https://api.github.com/repos/gitleaks/gitleaks/releases/latest | grep tag_name | cut -d '"' -f 4 | sed 's/v//')
77
+ curl -sSfL "https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz" | tar -xz
78
sudo mv gitleaks /usr/local/bin/
79
80
- name: Run Gitleaks
0 commit comments