diff --git a/.github/workflows/add-to-project.yml b/.github/workflows/add-to-project.yml index b737f3ca..5f4c9906 100644 --- a/.github/workflows/add-to-project.yml +++ b/.github/workflows/add-to-project.yml @@ -16,9 +16,10 @@ # • If you need different behaviour, open a PR against the reusable. # ───────────────────────────────────────────────────────────────────────────── # -# Auto-add this repo's qualifying issues, PRs, and Ideas-category discussions -# to the org-level Initiatives project -# (https://github.com/orgs/petry-projects/projects/1). +# Track this repo's issues (all, un-gated) and dev-lead-labeled PRs on the +# org-level Initiatives project +# (https://github.com/orgs/petry-projects/projects/1). Ideas live in +# Discussions and are not tracked here. # # To adopt: copy this file to .github/workflows/add-to-project.yml in your # repo. Requires the org secrets INITIATIVES_APP_ID and @@ -26,7 +27,6 @@ # app installation must include this repo. See petry-projects/.github#387. # # Tracking: petry-projects/.github#387, #415 -# Discussion: petry-projects/.github#386 name: Auto-add to Initiatives project on: @@ -34,16 +34,12 @@ on: types: [opened, labeled, unlabeled, reopened] pull_request_target: types: [opened, labeled, unlabeled, reopened, ready_for_review] - discussion: - types: [created, category_changed, deleted, transferred] permissions: {} concurrency: group: >- - add-to-project-${{ github.event_name == 'discussion' - && format('disc-{0}', github.event.discussion.number) - || format('{0}-{1}', github.event_name, + add-to-project-${{ format('{0}-{1}', github.event_name, github.event.issue.number || github.event.pull_request.number) }} cancel-in-progress: false diff --git a/.github/workflows/agent-shield.yml b/.github/workflows/agent-shield.yml index 097a8071..db61c813 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@agent-shield/stable # NOSONAR(githubactions:S7637) first-party channel ref + uses: petry-projects/.github/.github/workflows/agent-shield-reusable.yml@agent-shield/v2-stable # NOSONAR(githubactions:S7637) first-party channel ref diff --git a/.github/workflows/auto-rebase.yml b/.github/workflows/auto-rebase.yml index 65b06403..a45c4117 100644 --- a/.github/workflows/auto-rebase.yml +++ b/.github/workflows/auto-rebase.yml @@ -50,5 +50,5 @@ jobs: permissions: contents: write # update-branch via GITHUB_TOKEN (may touch .github/workflows/) pull-requests: write # post comments on PRs - uses: petry-projects/.github/.github/workflows/auto-rebase-reusable.yml@auto-rebase/stable # NOSONAR(githubactions:S7637) first-party channel ref + uses: petry-projects/.github/.github/workflows/auto-rebase-reusable.yml@auto-rebase/v2-stable # NOSONAR(githubactions:S7637) first-party channel ref secrets: inherit diff --git a/.github/workflows/ci-failure-analyst.yml b/.github/workflows/ci-failure-analyst.yml index 246d63af..7a810be3 100644 --- a/.github/workflows/ci-failure-analyst.yml +++ b/.github/workflows/ci-failure-analyst.yml @@ -41,6 +41,6 @@ jobs: if: >- github.event.check_run.conclusion == 'failure' && !startsWith(github.event.check_run.name, 'CI Failure Analyst') - uses: petry-projects/.github-private/.github/workflows/ci-failure-analyst-reusable.yml@ci-failure-analyst/stable # NOSONAR(githubactions:S7637) first-party channel ref + uses: petry-projects/.github-private/.github/workflows/ci-failure-analyst-reusable.yml@ci-failure-analyst/stable # NOSONAR(githubactions:S7637) first-party channel ref secrets: CLAUDE_CODE_OAUTH_TOKEN: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} diff --git a/.github/workflows/dependabot-automerge.yml b/.github/workflows/dependabot-automerge.yml index fb3985b3..a0b83321 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@dependabot-automerge/stable # NOSONAR(githubactions:S7637) first-party channel ref + uses: petry-projects/.github/.github/workflows/dependabot-automerge-reusable.yml@dependabot-automerge/v2-stable # NOSONAR(githubactions:S7637) first-party channel ref secrets: inherit diff --git a/.github/workflows/dependabot-rebase.yml b/.github/workflows/dependabot-rebase.yml index 42214b4c..c527fd3a 100644 --- a/.github/workflows/dependabot-rebase.yml +++ b/.github/workflows/dependabot-rebase.yml @@ -50,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@dependabot-rebase/stable # NOSONAR(githubactions:S7637) first-party channel ref + uses: petry-projects/.github/.github/workflows/dependabot-rebase-reusable.yml@dependabot-rebase/v2-stable # NOSONAR(githubactions:S7637) first-party channel ref 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 5224176b..f4b113de 100644 --- a/.github/workflows/dependency-audit.yml +++ b/.github/workflows/dependency-audit.yml @@ -1,6 +1,6 @@ # ───────────────────────────────────────────────────────────────────────────── # SOURCE OF TRUTH: petry-projects/.github/standards/workflows/dependency-audit.yml -# Standard: petry-projects/.github/standards/ci-standards.md#5-dependency-audit-dependency-auditym +# Standard: petry-projects/.github/standards/ci-standards.md#7-dependency-audit-dependency-audityml # Reusable: petry-projects/.github/.github/workflows/dependency-audit-reusable.yml # # AGENTS — READ BEFORE EDITING: @@ -30,4 +30,4 @@ permissions: jobs: dependency-audit: - uses: petry-projects/.github/.github/workflows/dependency-audit-reusable.yml@dependency-audit/stable # NOSONAR(githubactions:S7637) first-party channel ref + uses: petry-projects/.github/.github/workflows/dependency-audit-reusable.yml@dependency-audit/v2-stable # NOSONAR(githubactions:S7637) first-party channel ref diff --git a/.github/workflows/dev-lead.yml b/.github/workflows/dev-lead.yml index 45fe4704..577ec87e 100644 --- a/.github/workflows/dev-lead.yml +++ b/.github/workflows/dev-lead.yml @@ -8,9 +8,22 @@ # 2. Ensure CLAUDE_CODE_OAUTH_TOKEN is set as an org or repo secret. # 3. Optionally set GH_PAT_WORKFLOWS (required if Claude pushes workflow files). # 4. Optionally set vars.DEV_LEAD_ENGINE = "claude" | "gemini" | "copilot". +# 5. SonarCloud-gated repo? Nothing to do — the `uses:` line below already +# carries the inline `# NOSONAR(githubactions:S7637)` marker. The ref is a +# first-party reusable pinned to a moving channel/ring tag, so without the +# marker SonarCloud's githubactions:S7637 would fail the Quality Gate. The +# marker travels with this file on copy; no sonar-project.properties entry +# is needed. See https://github.com/petry-projects/.github/blob/main/standards/ci-standards.md#sonarcloud-exemption-first-party-reusable-ref-s7637. # -# UNLIKE claude.yml, this file has NO OIDC byte-for-byte constraint and may be -# freely modified on PR branches to adjust triggers for repo-specific needs. +# This stub is copied VERBATIM and is full-file identical across every adopting +# repo, modulo the per-repo ring/channel pin on the `uses:` ref and its matching +# `agent_ref` (below). Any other diff is drift, not a repo-specific liberty: +# `on:`, `permissions:`, and `concurrency:` are NOT repo-adjustable — do not trim +# a trigger, narrow a permission, or add a concurrency block on a PR branch. The +# behavior lives in the reusable, so change it there (or via a standards PR) and +# let the channel tag promote it centrally — never by editing this caller. See +# https://github.com/petry-projects/.github/blob/main/standards/ci-standards.md#centralization-tiers and +# https://github.com/petry-projects/.github/blob/main/standards/ci-standards.md#reusable-workflow-versioning--the-stable-channel. # # REQUIRED secrets: CLAUDE_CODE_OAUTH_TOKEN # OPTIONAL secrets: GH_PAT_WORKFLOWS, GOOGLE_API_KEY, GH_PAT @@ -47,10 +60,10 @@ jobs: # change to dev-lead can no longer gate its own fix (the self-host circular # dependency). Promotion is done by moving the dev-lead/stable tag centrally; this # caller is never edited on release. agent_ref threads the same channel into - # dev-lead's own scripts/prompts checkout. See ci-standards.md#dev-lead-agent. - uses: petry-projects/.github-private/.github/workflows/dev-lead-reusable.yml@dev-lead/stable # NOSONAR(githubactions:S7637) first-party channel ref + # dev-lead's own scripts/prompts checkout. See https://github.com/petry-projects/.github/blob/main/standards/ci-standards.md#dev-lead-agent. + uses: petry-projects/.github-private/.github/workflows/dev-lead-reusable.yml@dev-lead/v1-stable # NOSONAR(githubactions:S7637) first-party channel ref with: - agent_ref: dev-lead/stable + agent_ref: dev-lead/v1-stable secrets: inherit permissions: contents: write diff --git a/.github/workflows/feature-ideation.yml b/.github/workflows/feature-ideation.yml index 00f7a8c1..a302d6f9 100644 --- a/.github/workflows/feature-ideation.yml +++ b/.github/workflows/feature-ideation.yml @@ -100,7 +100,7 @@ jobs: discussions: write id-token: write actions: read - uses: petry-projects/.github/.github/workflows/feature-ideation-reusable.yml@feature-ideation/stable # NOSONAR(githubactions:S7637) first-party channel ref + uses: petry-projects/.github/.github/workflows/feature-ideation-reusable.yml@feature-ideation/stable # NOSONAR(githubactions:S7637) first-party channel ref with: # On the `discussion: created` trigger this carries the new Discussion's # number → the reusable runs single-idea enhancement mode. Empty on diff --git a/.github/workflows/pr-auto-review.yml b/.github/workflows/pr-auto-review.yml index 32b1a18a..2783397d 100644 --- a/.github/workflows/pr-auto-review.yml +++ b/.github/workflows/pr-auto-review.yml @@ -56,6 +56,6 @@ jobs: pull-requests: read checks: read actions: read - uses: petry-projects/.github/.github/workflows/pr-auto-review-reusable.yml@pr-auto-review/stable # NOSONAR(githubactions:S7637) first-party channel ref + uses: petry-projects/.github/.github/workflows/pr-auto-review-reusable.yml@pr-auto-review/stable # NOSONAR(githubactions:S7637) first-party channel ref secrets: GH_PAT_WORKFLOWS: ${{ secrets.GH_PAT_WORKFLOWS }} diff --git a/.github/workflows/pr-review-mention.yml b/.github/workflows/pr-review-mention.yml index dca2b37d..6527274b 100644 --- a/.github/workflows/pr-review-mention.yml +++ b/.github/workflows/pr-review-mention.yml @@ -37,5 +37,5 @@ jobs: pr-review-mention: permissions: pull-requests: write - uses: petry-projects/.github/.github/workflows/pr-review-mention-reusable.yml@pr-review-mention/stable # NOSONAR(githubactions:S7637) first-party channel ref + uses: petry-projects/.github/.github/workflows/pr-review-mention-reusable.yml@pr-review-mention/v2-stable # NOSONAR(githubactions:S7637) first-party channel ref secrets: inherit