diff --git a/.github/workflows/agent-shield.yml b/.github/workflows/agent-shield.yml index 8704981d..4cf7bb7d 100644 --- a/.github/workflows/agent-shield.yml +++ b/.github/workflows/agent-shield.yml @@ -30,4 +30,4 @@ permissions: jobs: agent-shield: - uses: petry-projects/.github/.github/workflows/agent-shield-reusable.yml@v1 + uses: petry-projects/.github/.github/workflows/agent-shield-reusable.yml@agent-shield/stable diff --git a/.github/workflows/dependabot-automerge.yml b/.github/workflows/dependabot-automerge.yml index 845c3295..c1c5ef2f 100644 --- a/.github/workflows/dependabot-automerge.yml +++ b/.github/workflows/dependabot-automerge.yml @@ -35,5 +35,5 @@ jobs: permissions: contents: read pull-requests: read - uses: petry-projects/.github/.github/workflows/dependabot-automerge-reusable.yml@v1 + uses: petry-projects/.github/.github/workflows/dependabot-automerge-reusable.yml@dependabot-automerge/stable secrets: inherit diff --git a/.github/workflows/dependabot-rebase.yml b/.github/workflows/dependabot-rebase.yml index 3e8799e8..e918c3ba 100644 --- a/.github/workflows/dependabot-rebase.yml +++ b/.github/workflows/dependabot-rebase.yml @@ -6,19 +6,26 @@ # AGENTS — READ BEFORE EDITING: # • This file is a THIN CALLER STUB. All rebase/merge serialization logic # lives in the reusable workflow above. -# • You MAY change: the SHA in the `uses:` line when upgrading the reusable -# workflow version (bump SHA to latest main of petry-projects/.github). -# • You MUST NOT change: trigger event, the concurrency group name, -# the explicit secrets block, or the job-level `permissions:` block — -# reusable workflows can be granted no more permissions than the calling -# job has, so removing the stanza breaks -# the reusable's gh API calls. +# • You MUST NOT change: the `uses:` ref — it is pinned to the +# `dependabot-rebase/stable` channel, a moving tag advanced centrally. +# Never repoint it to `@main`, a SHA, or a frozen `@vX` (see +# ci-standards.md → Reusable workflow versioning). Also do not change the +# concurrency group name, the explicit secrets +# block, or the job-level `permissions:` block — reusable workflows can be +# granted no more permissions than the calling job has, so removing the +# stanza breaks the reusable's gh API calls. Do not remove any trigger +# (`push` keeps the self-sustaining chain; `schedule` is the safety net +# when no PR merges have occurred recently; `workflow_dispatch` allows +# manual queue flushes). # • If you need different behaviour, open a PR against the reusable in the # central repo. # ───────────────────────────────────────────────────────────────────────────── # # Dependabot update-and-merge — thin caller for the org-level reusable. -# To adopt: copy this file to .github/workflows/dependabot-rebase.yml in your repo. +# To adopt: copy THIS file (standards/workflows/dependabot-rebase.yml) to +# .github/workflows/dependabot-rebase.yml in your repo. Do NOT copy +# .github/workflows/dependabot-rebase.yml from this repo — that file uses a +# local ref only valid in the source-of-truth repo. # Required org/repo secrets (inherited): # APP_ID — GitHub App ID with contents:write and pull-requests:write # APP_PRIVATE_KEY — GitHub App private key @@ -28,6 +35,8 @@ on: push: branches: - main + schedule: + - cron: '0 */4 * * *' # every 4 hours — safety net when no pushes to main trigger the chain workflow_dispatch: # allow manual trigger to flush Dependabot PR queue concurrency: @@ -41,7 +50,7 @@ jobs: permissions: contents: write # update-branch via GITHUB_TOKEN (may touch .github/workflows/) pull-requests: write # re-approve PRs after branch update - uses: petry-projects/.github/.github/workflows/dependabot-rebase-reusable.yml@0bba48104323486ac3b003ba3eba0ef747d9a7db # v1 + uses: petry-projects/.github/.github/workflows/dependabot-rebase-reusable.yml@dependabot-rebase/stable secrets: APP_ID: ${{ secrets.APP_ID }} APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} diff --git a/.github/workflows/dependency-audit.yml b/.github/workflows/dependency-audit.yml index f1173774..c1af742e 100644 --- a/.github/workflows/dependency-audit.yml +++ b/.github/workflows/dependency-audit.yml @@ -30,4 +30,4 @@ permissions: jobs: dependency-audit: - uses: petry-projects/.github/.github/workflows/dependency-audit-reusable.yml@v1 + uses: petry-projects/.github/.github/workflows/dependency-audit-reusable.yml@dependency-audit/stable diff --git a/.github/workflows/pr-review-mention.yml b/.github/workflows/pr-review-mention.yml index eee5a7b0..d7cf51d1 100644 --- a/.github/workflows/pr-review-mention.yml +++ b/.github/workflows/pr-review-mention.yml @@ -1,3 +1,26 @@ +# ───────────────────────────────────────────────────────────────────────────── +# SOURCE OF TRUTH: petry-projects/.github/standards/workflows/pr-review-mention.yml +# Standard: petry-projects/.github/standards/ci-standards.md +# Reusable: petry-projects/.github/.github/workflows/pr-review-mention-reusable.yml +# +# AGENTS — READ BEFORE EDITING: +# • This file is a THIN CALLER STUB. All review-dispatch logic lives in the +# reusable workflow above. +# • You MUST NOT change: the `uses:` ref — it is pinned to the +# `pr-review-mention/stable` channel, a moving tag advanced centrally. +# Never repoint it to `@main`, a SHA, or a frozen `@vX` (see +# ci-standards.md → Reusable workflow versioning). Also do not change the +# trigger events or the job-level `permissions:` block — reusable workflows +# can be granted no more permissions than the calling job, so removing the +# stanza breaks the reusable's gh API calls. +# • If you need different behaviour, open a PR against the reusable in the +# central repo. A new release is rolled out by moving the channel tag +# centrally — never by editing callers, so no fanout PR is needed. +# ───────────────────────────────────────────────────────────────────────────── +# +# PR Review Mention — thin caller for the org-level reusable. +# To adopt: copy this file to .github/workflows/pr-review-mention.yml in your repo. +# Requires: GH_PAT_WORKFLOWS org secret (already present in petry-projects org). name: PR Review — Mention Trigger on: @@ -18,4 +41,3 @@ jobs: statuses: read uses: petry-projects/.github/.github/workflows/pr-review-mention-reusable.yml@v2 secrets: inherit - diff --git a/.gitleaksignore b/.gitleaksignore index 02d76480..9318b7d8 100644 --- a/.gitleaksignore +++ b/.gitleaksignore @@ -36,12 +36,22 @@ e8cc0956c901e454aed61e7b10857e6a1a412881:_bmad/_config/files-manifest.csv:generi e8cc0956c901e454aed61e7b10857e6a1a412881:_bmad/_config/files-manifest.csv:generic-api-key:409 e8cc0956c901e454aed61e7b10857e6a1a412881:_bmad/_config/files-manifest.csv:generic-api-key:433 -# Commit aec934f9: same _bmad/_config/files-manifest.csv CSV rows as above -# (SHA256 content checksums of BMAD skill files) appearing in a later commit -# that re-introduced the same content. Same false-positive rationale applies. +# Commit aec934f: _bmad/_config/files-manifest.csv (lines 281, 282, 284, 300, +# 409, 433) — same false positives as e8cc0956, same justification: SHA256 +# content checksums in a CSV manifest, not API keys. aec934f92f4174b89944ee57a3d5cf68737f71c9:_bmad/_config/files-manifest.csv:generic-api-key:281 aec934f92f4174b89944ee57a3d5cf68737f71c9:_bmad/_config/files-manifest.csv:generic-api-key:282 aec934f92f4174b89944ee57a3d5cf68737f71c9:_bmad/_config/files-manifest.csv:generic-api-key:284 aec934f92f4174b89944ee57a3d5cf68737f71c9:_bmad/_config/files-manifest.csv:generic-api-key:300 aec934f92f4174b89944ee57a3d5cf68737f71c9:_bmad/_config/files-manifest.csv:generic-api-key:409 aec934f92f4174b89944ee57a3d5cf68737f71c9:_bmad/_config/files-manifest.csv:generic-api-key:433 + +# Commit 45b6a8ef: _bmad/_config/files-manifest.csv (lines 281, 282, 284, 300, +# 409, 433) — same false positives as e8cc0956 and aec934f, same justification: +# SHA256 content checksums in a CSV manifest, not API keys. +45b6a8ef162096dae42b2a8194334f24a6576f69:_bmad/_config/files-manifest.csv:generic-api-key:281 +45b6a8ef162096dae42b2a8194334f24a6576f69:_bmad/_config/files-manifest.csv:generic-api-key:282 +45b6a8ef162096dae42b2a8194334f24a6576f69:_bmad/_config/files-manifest.csv:generic-api-key:284 +45b6a8ef162096dae42b2a8194334f24a6576f69:_bmad/_config/files-manifest.csv:generic-api-key:300 +45b6a8ef162096dae42b2a8194334f24a6576f69:_bmad/_config/files-manifest.csv:generic-api-key:409 +45b6a8ef162096dae42b2a8194334f24a6576f69:_bmad/_config/files-manifest.csv:generic-api-key:433 diff --git a/sonar-project.properties b/sonar-project.properties index 43a50584..b383f478 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -2,4 +2,4 @@ sonar.projectKey=petry-projects_TalkTerm sonar.organization=petry-projects sonar.projectName=TalkTerm sonar.sources=. -sonar.exclusions=_bmad/**,_bmad-output/**,.claude/**,docs/** +sonar.exclusions=_bmad/**,_bmad-output/**,.claude/**,docs/**,.github/workflows/agent-shield.yml,.github/workflows/auto-rebase.yml,.github/workflows/dependabot-automerge.yml,.github/workflows/dependabot-rebase.yml,.github/workflows/dependency-audit.yml,.github/workflows/pr-review-mention.yml