generated from vercel/ai-chatbot
-
Notifications
You must be signed in to change notification settings - Fork 6
27 lines (23 loc) · 989 Bytes
/
gitleaks_pr.yaml
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
#####################################
# DO NOT EDIT DIRECTLY. #
# This file is managed by Terraform #
#####################################
on: [pull_request]
jobs:
gitleaks:
runs-on: ubuntu-latest
name: Detect Secrets
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # Checkout full history to make .gitleaksignore work like it does locally
- name: GitLeaks
uses: gacts/gitleaks@v1 # Action page: <https://github.com/gacts/gitleaks>
- name: Add Failure Instructions to Pull Request
if: ${{ failure() }}
uses: thollander/actions-comment-pull-request@v1 # Action page: <https://github.com/thollander/actions-comment-pull-request>
with:
message: |
:warning: A secret was detected :warning:
Follow instructions in [Notion](https://www.notion.so/definitive-io/GitHub-Secret-Prevention-32992307be6a42f6b1a00f7db04d16df) to resolve.