Skip to content

Commit 6afe578

Browse files
committed
DevOps Shield - DevSecOps Automation - Create devopsshield-ss-gitleaks.yml
1 parent 22565bf commit 6afe578

1 file changed

Lines changed: 60 additions & 0 deletions

File tree

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# DevOps Shield - The ultimate DevSecOps platform designed to secure your DevOps.
2+
# https://devopsshield.com
3+
##############################################################
4+
# This is a DevOps Shield - Application Security - Code Security Template.
5+
6+
# This workflow template uses actions that are not certified by DevOps Shield.
7+
# They are provided by a third-party and are governed by separate terms of service, privacy policy, and support documentation.
8+
9+
# Use this workflow template for integrating code security into your pipelines and workflows.
10+
11+
# DevOps Shield Workflow Template Details:
12+
# ------------------------------------------------------------
13+
# Code: GH_SS_GITLEAKS
14+
# Name: Gitleaks Secret Scanning
15+
# DevSecOpsControls: SS
16+
# Provider: Gitleaks
17+
# Categories: Code Scanning, Secrets
18+
# Description:
19+
# Gitleaks is a tool for detecting and preventing hardcoded secrets like passwords, API keys, and tokens in git repos.
20+
# Gitleaks is an easy-to-use, all-in-one solution for detecting secrets, past or present, in your code.
21+
# Enable Gitleaks-Action in your GitHub workflows to be alerted when secrets are leaked as soon as they happen.
22+
# A gitleaks-action license can be obtained at gitleaks.io.
23+
# Read the official documentation to find out more.
24+
# For more information:
25+
# https://gitleaks.io/
26+
# https://github.com/gitleaks
27+
# https://blog.gitleaks.io/
28+
# ------------------------------------------------------------
29+
# Source repository: https://github.com/gitleaks/gitleaks-action
30+
##############################################################
31+
32+
name: Gitleaks Secret Scanning
33+
34+
on:
35+
push:
36+
pull_request:
37+
workflow_dispatch:
38+
schedule:
39+
- cron: 0 0 * * *
40+
41+
jobs:
42+
gitleaks:
43+
name: Gitleaks Secret Scanning
44+
45+
runs-on: ubuntu-latest
46+
47+
permissions:
48+
contents: read
49+
50+
steps:
51+
- uses: actions/checkout@v4
52+
with:
53+
fetch-depth: 0
54+
55+
- name: Run Gitleaks
56+
uses: gitleaks/gitleaks-action@v2
57+
id: gitleaks
58+
env:
59+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }} # Only required for Organizations, not personal accounts.

0 commit comments

Comments
 (0)