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
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,34 @@ jobs:
- name: Run AgentShield
run: |
npx ecc-agentshield scan --path . --format json --min-severity high

secret-scan:
name: Secret scan (gitleaks)
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout (full history)
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0

- name: Install gitleaks
env:
GITLEAKS_VERSION: "8.30.1"
run: |
Comment thread
don-petry marked this conversation as resolved.
# Checksum kept in the shell run block (not as a YAML env var) to avoid
# SonarCloud flagging hex strings in env: sections as Security Hotspots.
gitleaks_checksum="551f6fc83ea457d62a0d98237cbad105af8d557003051f41f3e7ca7b3f2470eb"
tarball="gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz"
url="https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/${tarball}"
install_dir="${RUNNER_TEMP}/gitleaks-bin"
mkdir -p "${install_dir}"
wget -q "${url}" -O /tmp/gitleaks.tar.gz
echo "${gitleaks_checksum} /tmp/gitleaks.tar.gz" | sha256sum -c
tar -xzf /tmp/gitleaks.tar.gz -C "${install_dir}" gitleaks
chmod +x "${install_dir}/gitleaks"
echo "${install_dir}" >> "${GITHUB_PATH}"

- name: Run gitleaks
run: gitleaks detect --source . --config .gitleaks.toml --redact --verbose --exit-code 1
2 changes: 1 addition & 1 deletion .github/workflows/dependency-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ jobs:
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4

- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable

- name: Install cargo-audit
run: cargo install cargo-audit@0.22.1 --locked
Expand Down
10 changes: 10 additions & 0 deletions .gitleaks.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title = "gitleaks config"

# Add repo-specific allowlists below.
# Common false-positive paths:
# '''_bmad/''' — BMAD knowledge/config files (not application secrets)
[allowlist]
description = "Allowlisted paths"
paths = [
'''_bmad/''',
]