Skip to content

Commit 69158b2

Browse files
committed
feat(workflow): add Gitleaks for secret detection
1 parent c4723b9 commit 69158b2

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

.github/workflows/gitleaks.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# https://github.com/gitleaks/gitleaks?tab=readme-ov-file#github-action
2+
name: Gitleaks
3+
4+
on:
5+
push:
6+
pull_request:
7+
workflow_dispatch:
8+
schedule:
9+
- cron: "0 5 * * *" # run once a day at 5 AM
10+
11+
jobs:
12+
scan:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
22+
- uses: gitleaks/gitleaks-action@v2
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }} # Only required for Organizations, not personal accounts.

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,10 @@ This project uses GitHub Actions for automated CI/CD workflows that run on every
164164

165165
### Automated Checks
166166

167-
- **🔍 [CodeQL Analysis](https://github.com/modelscope/modelscope-mcp-server/actions/workflows/codeql.yml)** - Security vulnerability scanning and code quality analysis
168167
- **[Lint](https://github.com/modelscope/modelscope-mcp-server/actions/workflows/lint.yml)** - Code formatting, linting, and style checks using pre-commit hooks
169-
- **🧪 [Test Suite](https://github.com/modelscope/modelscope-mcp-server/actions/workflows/test.yml)** - Comprehensive testing across Python 3.10, 3.11, and 3.12
168+
- **🧪 [Test](https://github.com/modelscope/modelscope-mcp-server/actions/workflows/test.yml)** - Comprehensive testing across all supported Python versions
169+
- **🔍 [CodeQL](https://github.com/modelscope/modelscope-mcp-server/actions/workflows/codeql.yml)** - Security vulnerability scanning and code quality analysis
170+
- **🔒 [Gitleaks](https://github.com/modelscope/modelscope-mcp-server/actions/workflows/gitleaks.yml)** - Detecting secrets like passwords, API keys, and tokens
170171

171172
### Local Development Checks
172173

0 commit comments

Comments
 (0)