Skip to content

Commit e06f705

Browse files
Add security scan workflow using Gitleaks
This workflow runs a security scan using Gitleaks on pushes and pull requests to the main branch, as well as on a scheduled basis every Monday.
1 parent db15096 commit e06f705

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/security.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: "Security Shield"
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
schedule:
9+
- cron: '0 0 * * 1' # Runs every Monday at midnight
10+
workflow_dispatch: # Allows manual trigger
11+
12+
jobs:
13+
scan:
14+
name: Security Scan
15+
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read
18+
security-events: write
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
- name: Run Gitleaks
24+
uses: gitleaks/gitleaks-action@v2
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)