generated from vercel/ai-chatbot
-
Notifications
You must be signed in to change notification settings - Fork 6
39 lines (34 loc) · 1.34 KB
/
gitleaks_push.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
28
29
30
31
32
33
34
35
36
37
38
39
#####################################
# DO NOT EDIT DIRECTLY. #
# This file is managed by Terraform #
#####################################
on: [push]
jobs:
gitleaks:
runs-on: ubuntu-latest
name: Detect Secrets
steps:
- name: Checkout
uses: actions/checkout@v4
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>
with:
version: 8.18.4
- name: Email Security
if: ${{ failure() && github.event.number == 0 }} # Only run for push events
uses: JaSiLez/[email protected]
with:
server_address: smtp.mandrillapp.com
server_port: 465
username: groq
password: ${{ secrets.MANDRILL_API_KEY }}
subject: Secret detected in GitHub repository '${{ github.event.repository.name }}'
from: GitLeaks GitHub Action <[email protected]>
convert_markdown: true
html_body: |
Secret detected in ${{ github.event.repository.url }}. See details below:
* action: ${{ github.event.repository.url }}/actions/runs/${{ github.run_id }}
* commit: ${{ github.event.head_commit.url }}