Update gitleaks.yml

This commit is contained in:
Erreur32 2025-03-24 22:31:12 +01:00 committed by GitHub
parent e9b2a59291
commit 3924291811
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,26 +1,18 @@
name: Gitleaks Security Scan
on:
push:
branches:
- main
pull_request:
branches:
- main
on: [push, pull_request]
jobs:
gitleaks:
name: Run Gitleaks Scan
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v2
- name: Install Gitleaks
run: |
wget https://github.com/gitleaks/gitleaks/releases/latest/download/gitleaks-linux-amd64 -O gitleaks
chmod +x gitleaks
sudo mv gitleaks /usr/local/bin/
- name: Download Gitleaks binary
run: |
wget https://github.com/gitleaks/gitleaks/releases/download/v8.24.2/gitleaks-linux-amd64 -O gitleaks
chmod +x gitleaks
- name: Run Gitleaks
run: gitleaks detect --source . --verbose --exit-code 1
- name: Run Gitleaks
run: ./gitleaks detect --source . --verbose --report-path gitleaks-report.json