Skip to content

Commit 0d621cb

Browse files
Copilottomgrv
andauthored
Feat: ✨ Add validate-pr-secret workflow with gitleaks-action (#34)
* Initial plan * ✨ Add validate-pr-secret workflow with gitleaks-action Co-authored-by: tomgrv <1809566+tomgrv@users.noreply.github.com> * ✨ Add validate-pr-secret workflow to githooks stubs Co-authored-by: tomgrv <1809566+tomgrv@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: tomgrv <1809566+tomgrv@users.noreply.github.com>
1 parent 9d22977 commit 0d621cb

2 files changed

Lines changed: 48 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# @format
2+
3+
name: Validate PR Secrets
4+
5+
on:
6+
pull_request:
7+
types: [opened, edited, reopened, synchronize]
8+
9+
permissions:
10+
contents: read
11+
pull-requests: write
12+
13+
jobs:
14+
gitleaks:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
21+
- name: Run Gitleaks
22+
uses: gitleaks/gitleaks-action@v2
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# @format
2+
3+
name: Validate PR Secrets
4+
5+
on:
6+
pull_request:
7+
types: [opened, edited, reopened, synchronize]
8+
9+
permissions:
10+
contents: read
11+
pull-requests: write
12+
13+
jobs:
14+
gitleaks:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
21+
- name: Run Gitleaks
22+
uses: gitleaks/gitleaks-action@v2
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)