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
22 changes: 13 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- name: Checkout (full history)
# Pin to SHA per Action Pinning Policy (ci-standards.md#action-pinning-policy).
Expand All @@ -177,14 +176,19 @@ jobs:
fetch-depth: 0

- name: Run gitleaks
# Pinned to SHA per Action Pinning Policy (ci-standards.md#action-pinning-policy).
# Refresh with: gh api repos/gitleaks/gitleaks-action/git/refs/tags/v2 --jq '.object.sha'
# then dereference if it points at an annotated tag.
uses: gitleaks/gitleaks-action@e0c47f4f8be36e29cdc102c57e68cb5cbf0e8d1e # v3.0.0
with:
args: detect --source . --redact --verbose --exit-code 1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# gitleaks-action v3 requires a paid GITLEAKS_LICENSE for org repos; run the
# CLI binary directly to avoid that constraint while keeping full scanning.
# To upgrade: gh api repos/gitleaks/gitleaks/releases/latest --jq '.tag_name'
# then fetch the new checksum from gitleaks_X.Y.Z_checksums.txt.
run: |
VERSION="8.30.1"
TARBALL="gitleaks_${VERSION}_linux_x64.tar.gz"
EXPECTED_SHA256="551f6fc83ea457d62a0d98237cbad105af8d557003051f41f3e7ca7b3f2470eb"
curl -sSfL "https://github.com/gitleaks/gitleaks/releases/download/v${VERSION}/${TARBALL}" \
-o "/tmp/${TARBALL}"
echo "${EXPECTED_SHA256} /tmp/${TARBALL}" | sha256sum --check
tar -xz -C /tmp -f "/tmp/${TARBALL}"
/tmp/gitleaks detect --source . --redact --verbose --exit-code 1

# ---------------------------------------------------------------------------
# Push API image to Artifact Registry (main branch only)
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/dev-lead.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@ permissions: {}

jobs:
dev-lead:
uses: petry-projects/.github-private/.github/workflows/dev-lead-reusable.yml@cb20c7c2757135c58375191e0f6616a29e132ca3 # main
uses: petry-projects/.github-private/.github/workflows/dev-lead-reusable.yml@5a9a2476575cfcf0e730993f589587db054219f1 # main
secrets: inherit
permissions:
contents: write
pull-requests: write
issues: write
actions: read
checks: read
statuses: read # required by dev-lead-reusable.yml since #435
14 changes: 14 additions & 0 deletions .gitleaks.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
title = "gitleaks config"

[extend]
useDefault = true

# Files under _bmad/ and .claude/skills/ are BMAD framework knowledge bases and
# workflow templates. They contain example tokens written as test fixtures, not
# real secrets. Exclude them from the scan to eliminate false positives.
[allowlist]
description = "BMAD framework templates and skill knowledge files"
paths = [
'''_bmad/''',
'''\.claude/skills/''',
]
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"brace-expansion": ">=5.0.6",
"ws": ">=8.20.1",
"lodash@>=4.0.0 <=4.17.23": ">=4.18.0",
"tmp@<=0.2.3": ">=0.2.4",
"tmp@<0.2.6": ">=0.2.6",
"uuid@<11.1.1": ">=11.1.1",
"@tootallnate/once@<3.0.1": ">=3.0.1"
}
},
Expand Down
19 changes: 10 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ sonar.projectKey=petry-projects_broodly
sonar.organization=petry-projects
sonar.projectName=broodly
sonar.sources=.
sonar.exclusions=_bmad/**,_bmad-output/**,.claude/**
sonar.exclusions=_bmad/**,_bmad-output/**,.claude/**,.github/**
Loading