-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (30 loc) · 853 Bytes
/
Copy pathgitleaks.yml
File metadata and controls
36 lines (30 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: CG Gitleaks Secret Scan
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '23 9 * * 5'
workflow_dispatch:
permissions:
contents: read
jobs:
gitleaks:
runs-on: ubuntu-latest
permissions:
contents: read
# Allow the action to annotate pull requests with any findings
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
# Full history so Gitleaks can scan every commit for secrets
fetch-depth: 0
- name: Run Gitleaks
uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# GITLEAKS_LICENSE is only required for GitHub Organization accounts.
# This repository lives under a personal account, so none is needed.