knox 修订了这个 Gist . 跳至此修订
1 file changed, 14 insertions
Gitleaks-readme-3.sh(file created)
@@ -0,0 +1,14 @@ | |||
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. |
更新
更早