Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/secret-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Secret Scan

on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 3 * * 0'

jobs:
secret-scan:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
lfs: true

- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install detect-secrets
run: |
python -m pip install --upgrade pip
python -m pip install detect-secrets

- name: Run secret detection
run: ./scripts/ci/secret-detection.sh
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ nosetests.xml
coverage.xml
*,cover
.pytest_cache
.pre-commit-cache/
.uv-cache/
.uvcache/

# Translations
*.mo
Expand Down
11 changes: 11 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
repos:
- repo: local
hooks:
- id: detect-secrets
name: Detect secrets
entry: ./scripts/pre-commit-secret-check.sh
language: python
additional_dependencies:
- detect-secrets
pass_filenames: false
always_run: true
Loading
Loading