Skip to content

Commit e2fde4b

Browse files
committed
ci(.github): document the Gitleaks check
1 parent 4a6caee commit e2fde4b

File tree

4 files changed

+39
-16
lines changed

4 files changed

+39
-16
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# GitHub Action: Scan for Secrets and Sensitive Data
2+
#
3+
# This workflow scans the repository for secrets, credentials, and other sensitive information
4+
# using Gitleaks. It is triggered on pull requests and manual workflow dispatches.
5+
#
6+
# Maintainer: Matt Norris <matnorri@cisco.com>
7+
#
8+
# Usage:
9+
# - Ensures no sensitive data is committed to the repository.
10+
# - Fails the workflow if any secrets or sensitive patterns are detected.
11+
#
12+
# For more information on Gitleaks, see: https://github.com/gitleaks/gitleaks
13+
#
14+
# NOTE: This workflow is a draft. We are waiting for a license for our organization to be approved.
15+
16+
name: Scan for leaks
17+
18+
on: [pull_request, workflow_dispatch]
19+
20+
jobs:
21+
gitleaks:
22+
if: github.event.pull_request.user.login != 'gveappsupport'
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v1
26+
- name: gitleaks-action
27+
uses: zricethezav/gitleaks-action@master

act/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
This directory contains configuration files and documentation for running local GitHub Actions workflows using the `act` tool.
2+
3+
Scan the repository for secrets and sensitive information with gitleaks.
4+
5+
```sh
6+
act workflow_dispatch -e act/scan-leaks.json
7+
```

act/scan-leaks.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"action": "workflow_dispatch",
3+
"workflow": "scan-leaks.yml",
4+
"inputs": {}
5+
}

archive/.github/workflows/scan-leaks.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)