Gitleaks-readme-3.sh
· 426 B · Bash
原始文件
name: gitleaks
on: [pull_request, push, workflow_dispatch]
jobs:
scan:
name: gitleaks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE}} # Only required for Organizations, not personal accounts.
1 | name: gitleaks |
2 | on: [pull_request, push, workflow_dispatch] |
3 | jobs: |
4 | scan: |
5 | name: gitleaks |
6 | runs-on: ubuntu-latest |
7 | steps: |
8 | - uses: actions/checkout@v3 |
9 | with: |
10 | fetch-depth: 0 |
11 | - uses: gitleaks/gitleaks-action@v2 |
12 | env: |
13 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
14 | GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE}} # Only required for Organizations, not personal accounts. |