Skip to content

Commit 92d9030

Browse files
authored
ci: add security workflow (#259)
1 parent 524bacf commit 92d9030

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/security.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: SECURITY
2+
3+
on:
4+
workflow_call:
5+
merge_group:
6+
pull_request:
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
trufflehog:
13+
name: trufflehog
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
id-token: write
18+
issues: write
19+
pull-requests: write
20+
steps:
21+
- name: checkout repository
22+
uses: actions/checkout@v6
23+
with:
24+
fetch-depth: 0
25+
- name: scan source
26+
id: trufflehog
27+
uses: trufflesecurity/trufflehog@bff3d2670b362bbb4a0bcdeffea146cbc2ad3abd
28+
- name: evaluate results
29+
if: steps.trufflehog.outcome == 'failure'
30+
run: exit 1
31+
gitleaks:
32+
name: gitleaks
33+
runs-on: ubuntu-latest
34+
steps:
35+
- name: checkout repository
36+
uses: actions/checkout@v6
37+
with:
38+
fetch-depth: 0
39+
- name: scan source
40+
uses: gitleaks/gitleaks-action@ff98106e4c7b2bc287b24eaf42907196329070c7
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }}

0 commit comments

Comments
 (0)