diff --git a/standards/workflows/agent-shield.yml b/standards/workflows/agent-shield.yml index 267a057ed..4cf7bb7dd 100644 --- a/standards/workflows/agent-shield.yml +++ b/standards/workflows/agent-shield.yml @@ -30,4 +30,4 @@ permissions: jobs: agent-shield: - uses: petry-projects/.github/.github/workflows/agent-shield-reusable.yml@208ec2d69b75227d375edf8745d84fbac05a76b2 # v1 + uses: petry-projects/.github/.github/workflows/agent-shield-reusable.yml@agent-shield/stable diff --git a/standards/workflows/auto-rebase.yml b/standards/workflows/auto-rebase.yml index 3e91300dc..6e74015b5 100644 --- a/standards/workflows/auto-rebase.yml +++ b/standards/workflows/auto-rebase.yml @@ -6,9 +6,11 @@ # AGENTS — READ BEFORE EDITING: # • This file is a THIN CALLER STUB. All branch-update 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, +# • You MUST NOT change: the `uses:` ref — it is pinned to the +# `auto-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 trigger event, +# the concurrency group name, # 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. @@ -48,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@v1 + uses: petry-projects/.github/.github/workflows/auto-rebase-reusable.yml@auto-rebase/stable secrets: inherit diff --git a/standards/workflows/dependabot-automerge.yml b/standards/workflows/dependabot-automerge.yml index 845c32956..c1c5ef2fa 100644 --- a/standards/workflows/dependabot-automerge.yml +++ b/standards/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/standards/workflows/dependabot-rebase.yml b/standards/workflows/dependabot-rebase.yml index 0a621c09c..e918c3ba5 100644 --- a/standards/workflows/dependabot-rebase.yml +++ b/standards/workflows/dependabot-rebase.yml @@ -6,13 +6,11 @@ # 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). -# • SHA-pinned intentionally (not @v1): no semver tags are maintained for -# this internal reusable workflow. Downstream repos pin to a specific -# commit SHA and bump deliberately. To look up the current SHA: -# gh api repos/petry-projects/.github/branches/main --jq '.commit.sha' -# • You MUST NOT change: the concurrency group name, the explicit secrets +# • 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 @@ -52,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@9a694e5798ebb596476e6eda80f11e832d8fd0a9 # main + 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/standards/workflows/dependency-audit.yml b/standards/workflows/dependency-audit.yml index f1173774d..c1af742eb 100644 --- a/standards/workflows/dependency-audit.yml +++ b/standards/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/standards/workflows/pr-review-mention.yml b/standards/workflows/pr-review-mention.yml index 0ec9d5128..d9a27b285 100644 --- a/standards/workflows/pr-review-mention.yml +++ b/standards/workflows/pr-review-mention.yml @@ -6,15 +6,16 @@ # AGENTS — READ BEFORE EDITING: # • This file is a THIN CALLER STUB. All review-dispatch logic lives in the # reusable workflow above. -# • You MAY change: the tag in the `uses:` line when upgrading the reusable -# workflow version (e.g. bump `@v1` → `@v2` when petry-projects/.github cuts a new release). -# • You MUST NOT change: 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. +# • 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. -# • When publishing a new version of this reusable, also update this template and -# open a fanout PR across all caller repos. +# 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. @@ -36,5 +37,5 @@ jobs: pr-review-mention: permissions: pull-requests: write - uses: petry-projects/.github/.github/workflows/pr-review-mention-reusable.yml@v2 + uses: petry-projects/.github/.github/workflows/pr-review-mention-reusable.yml@pr-review-mention/stable secrets: inherit