Skip to content

release: v0.6.0

release: v0.6.0 #110

Workflow file for this run

name: Secret Scanning
on:
push:
branches: [main, dev, "feature/**", staging]
pull_request:
branches: [main, dev, staging]
jobs:
gitleaks:
name: Gitleaks Secret Detection
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run Gitleaks
uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }}
GITLEAKS_ENABLE_COMMENTS: true
detect-secrets:
name: Detect Secrets (Additional Check)
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install detect-secrets
run: pip install detect-secrets
- name: Scan for secrets
run: |
# Exclude .git, node_modules, and other common non-source dirs from scan
EXCLUDE_REGEX="\.git|node_modules|bun\.lockb?|dist"
if [ -f .secrets.baseline ]; then
detect-secrets scan --baseline .secrets.baseline --exclude-files "$EXCLUDE_REGEX" --all-files --force-use-all-plugins
else
detect-secrets scan --exclude-files "$EXCLUDE_REGEX" --all-files --force-use-all-plugins
fi
continue-on-error: false