-
-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (35 loc) · 985 Bytes
/
gitleaks.yml
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
37
38
39
---
name: 'gitleaks'
on: # yamllint disable-line rule:truthy
pull_request:
branches:
- 'main'
push: {}
workflow_dispatch: {}
permissions:
contents: 'read'
jobs:
gitleaks:
name: 'gitleaks'
runs-on: 'ubuntu-24.04'
permissions:
contents: 'read'
steps:
- name: 'Harden Runner'
uses: 'step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f' # v2.10.2
with:
egress-policy: 'block'
disable-sudo: true
allowed-endpoints: >
api.github.com:443
github.com:443
objects.githubusercontent.com:443
- name: 'Checkout the repository'
uses: 'actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683' # v4.2.2
with:
fetch-depth: 0
- name: 'Run gitleaks'
uses: 'gitleaks/gitleaks-action@83373cf2f8c4db6e24b41c1a9b086bb9619e9cd3' # v2.3.7
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
...