Gitleaks Scan in [main] @williampsena #50
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Gitleaks Scan | |
run-name: Gitleaks Scan in [${{ github.ref_name }}] @${{ github.actor }} | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
gitleaks: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Run Gitleaks | |
uses: gitleaks/gitleaks-action@v2 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
args: detect --report-format json --report-path gitleaks_report.json --config-path .gitleaks.toml | |
- name: Upload Gitleaks report | |
uses: actions/upload-artifact@v3 | |
with: | |
name: gitleaks-report | |
path: gitleaks_report.json |