Skip to content
This repository was archived by the owner on Aug 13, 2024. It is now read-only.

Commit 72e1e45

Browse files
committed
GitHub Terraform: Create/Update .github/workflows/gitleaks_pr.yaml
1 parent 33934de commit 72e1e45

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/gitleaks_pr.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#####################################
2+
# DO NOT EDIT DIRECTLY. #
3+
# This file is managed by Terraform #
4+
#####################################
5+
6+
on: [pull_request]
7+
8+
jobs:
9+
gitleaks:
10+
runs-on: ubuntu-latest
11+
name: Detect Secrets
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 0 # Checkout full history to make .gitleaksignore work like it does locally
17+
18+
- name: GitLeaks
19+
uses: gacts/gitleaks@v1 # Action page: <https://github.com/gacts/gitleaks>
20+
21+
- name: Add Failure Instructions to Pull Request
22+
if: ${{ failure() }}
23+
uses: thollander/actions-comment-pull-request@v1 # Action page: <https://github.com/thollander/actions-comment-pull-request>
24+
with:
25+
message: |
26+
:warning: A secret was detected :warning:
27+
Follow instructions in [Notion](https://www.notion.so/definitive-io/GitHub-Secret-Prevention-97986fd7ae9f45dd8703a1e42f7b07f8#027d1f9cd2544a0798505a1817dfe3df) to resolve.

0 commit comments

Comments
 (0)