Skip to content
Merged
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
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,26 @@ jobs:

- name: Test + coverage (≥80% branch and line)
run: npx jest --ci --coverage --coverageThreshold='{"global":{"lines":80,"branches":80}}'

# ── Secret scanning ────────────────────────────────────────────────────────
secret-scan:
name: Secret scan (gitleaks)
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- name: Checkout (full history)
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
fetch-depth: 0

- name: Run gitleaks
# Pinned to SHA per Action Pinning Policy (ci-standards.md#action-pinning-policy).
Comment thread
don-petry marked this conversation as resolved.
Resolved
# Refresh with: gh api repos/gitleaks/gitleaks-action/git/refs/tags/v2.3.9 --jq '.object.sha'
uses: gitleaks/gitleaks-action@ff98106e4c7b2bc287b24eaf42907196329070c7 # v2.3.9
with:
args: detect --source . --redact --verbose --exit-code 1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }}
16 changes: 16 additions & 0 deletions .gitleaksignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# False-positive suppressions for gitleaks.
#
# Each line is a fingerprint (<commit>:<file>:<rule>:<line>) for a finding
# that has been reviewed and confirmed as a false positive.
#
# All entries below are file-path strings in _bmad/_config/files-manifest.csv
# and _bmad/tea/testarch/knowledge/api-testing-patterns.md that contain the
# substring "api-key" or similar as part of a documentation path, not as an
# actual credential.
865de69b05c97da7898ea0bdba30bec68b27be27:_bmad/_config/files-manifest.csv:generic-api-key:286
865de69b05c97da7898ea0bdba30bec68b27be27:_bmad/_config/files-manifest.csv:generic-api-key:287
865de69b05c97da7898ea0bdba30bec68b27be27:_bmad/_config/files-manifest.csv:generic-api-key:289
865de69b05c97da7898ea0bdba30bec68b27be27:_bmad/_config/files-manifest.csv:generic-api-key:305
865de69b05c97da7898ea0bdba30bec68b27be27:_bmad/_config/files-manifest.csv:generic-api-key:413
865de69b05c97da7898ea0bdba30bec68b27be27:_bmad/_config/files-manifest.csv:generic-api-key:437
865de69b05c97da7898ea0bdba30bec68b27be27:_bmad/tea/testarch/knowledge/api-testing-patterns.md:generic-api-key:681
Loading