Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
bd4253f
chore: sync 4 org-standard workflow stub(s) from petry-projects/.github
don-petry Sep 14, 2026
f8ee99a
chore: sync 4 org-standard workflow stub(s) from petry-projects/.github
don-petry Sep 14, 2026
f0fde93
chore: sync 4 org-standard workflow stub(s) from petry-projects/.github
don-petry Sep 14, 2026
b432346
chore: sync 4 org-standard workflow stub(s) from petry-projects/.github
don-petry Sep 14, 2026
956afe2
Merge branch 'main' into standards-sync/workflows-20260914
don-petry Sep 16, 2026
0670e59
Merge branch 'main' into standards-sync/workflows-20260914
don-petry Sep 17, 2026
621bbe0
Merge branch 'main' into standards-sync/workflows-20260914
don-petry Sep 19, 2026
bfbaf50
Merge branch 'main' into standards-sync/workflows-20260914
don-petry Sep 19, 2026
276da77
Merge branch 'main' into standards-sync/workflows-20260914
don-petry Sep 19, 2026
7e17d1e
Merge branch 'main' into standards-sync/workflows-20260914
don-petry Sep 20, 2026
4d4b490
Merge branch 'main' into standards-sync/workflows-20260914
don-petry Sep 20, 2026
70ab9b5
Merge branch 'main' into standards-sync/workflows-20260914
don-petry Sep 21, 2026
624a98d
Merge branch 'main' into standards-sync/workflows-20260914
don-petry Sep 21, 2026
a9abad4
Merge branch 'main' into standards-sync/workflows-20260914
don-petry Sep 21, 2026
4bf40d7
Merge branch 'main' into standards-sync/workflows-20260914
don-petry Sep 21, 2026
3effbe4
Merge branch 'main' into standards-sync/workflows-20260914
don-petry Sep 21, 2026
485f60a
Merge branch 'main' into standards-sync/workflows-20260914
don-petry Sep 21, 2026
48b6396
Merge branch 'main' into standards-sync/workflows-20260914
don-petry Sep 22, 2026
d242132
Merge branch 'main' into standards-sync/workflows-20260914
don-petry Sep 22, 2026
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
4 changes: 2 additions & 2 deletions .github/workflows/add-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@
add-to-project:
permissions:
contents: read
uses: petry-projects/.github/.github/workflows/add-to-project-reusable.yml@add-to-project/v1-stable # NOSONAR(githubactions:S7637) first-party channel ref
uses: petry-projects/.github/.github/workflows/add-to-project-reusable.yml@add-to-project/v1-next # NOSONAR(githubactions:S7637) first-party channel ref

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skipping the SHA-pin request: this uses: reference targets one of the org's own reusable workflows on a moving release-channel tag (@<agent>/v<MAJOR>-<tier>), which is the sanctioned first-party mutable-ref exception per AGENTS.md ("Release channel tags & the mutable-ref exception"). Pinning it to a commit SHA would freeze it off the central rollout/rollback mechanism and is rejected by the reusable-pin compliance audit, so the ref is intentionally left on its channel tag. Note: the flagged -next refs have separately been reverted to their canonical -stable channel in this pass.

with:
project_id: PVT_kwDOD2inqs4BZq3-
project_url: https://github.com/orgs/petry-projects/projects/1
agent_ref: add-to-project/v1-stable
agent_ref: add-to-project/v1-next
Comment on lines +50 to +54

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: This moves the caller and forwarded agent_ref from the required stable channel to next, so stable-channel promotions and rollbacks no longer control this workflow. [api mismatch]

Assessment: 🟠 Major · 🔁 Occurrence: Often

Use CodeAnt Skill Fix in Cursor Fix in VSCode Claude

Prompt for AI Agent 🤖
This is a comment left during a code review.

**Path:** .github/workflows/add-to-project.yml
**Line:** 50:54
**Comment:**
	*Api Mismatch: This moves the caller and forwarded `agent_ref` from the required stable channel to `next`, so stable-channel promotions and rollbacks no longer control this workflow.

Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
👍 | 👎

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in .github/workflows/add-to-project.yml: reverted both the uses: pin and the forwarded agent_ref from add-to-project/v1-next back to add-to-project/v1-stable, restoring the required stable channel so central promotions/rollbacks continue to control this caller. This matches the verbatim standards deployment (org stubs are shipped repinned to @<name>/v<MAJOR>-stable).

Comment thread
coderabbitai[bot] marked this conversation as resolved.
# Pass only the secrets the reusable declares (least privilege; avoids
# `secrets: inherit` handing the reusable every org secret).
secrets:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/agent-shield.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@

jobs:
agent-shield:
uses: petry-projects/.github/.github/workflows/agent-shield-reusable.yml@agent-shield/v2-stable # NOSONAR(githubactions:S7637) first-party channel ref
uses: petry-projects/.github/.github/workflows/agent-shield-reusable.yml@agent-shield/v2-next # NOSONAR(githubactions:S7637) first-party channel ref

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skipping the SHA-pin request: this uses: reference targets one of the org's own reusable workflows on a moving release-channel tag (@<agent>/v<MAJOR>-<tier>), which is the sanctioned first-party mutable-ref exception per AGENTS.md ("Release channel tags & the mutable-ref exception"). Pinning it to a commit SHA would freeze it off the central rollout/rollback mechanism and is rejected by the reusable-pin compliance audit, so the ref is intentionally left on its channel tag. Note: the flagged -next refs have separately been reverted to their canonical -stable channel in this pass.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: This changes the required AgentShield caller from the canonical stable channel to next, causing CI to use unreleased scan behavior and failing the repository's canonical stub validation. [api mismatch]

Assessment: 🟠 Major · 🔁 Occurrence: Often

Use CodeAnt Skill Fix in Cursor Fix in VSCode Claude

Prompt for AI Agent 🤖
This is a comment left during a code review.

**Path:** .github/workflows/agent-shield.yml
**Line:** 33:33
**Comment:**
	*Api Mismatch: This changes the required AgentShield caller from the canonical stable channel to `next`, causing CI to use unreleased scan behavior and failing the repository's canonical stub validation.

Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
👍 | 👎

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in .github/workflows/agent-shield.yml: reverted the AgentShield reusable uses: pin from agent-shield/v2-next back to the canonical agent-shield/v2-stable channel, so CI uses released scan behavior and the caller passes canonical stub validation again.

Comment thread
coderabbitai[bot] marked this conversation as resolved.
4 changes: 2 additions & 2 deletions .github/workflows/dev-lead.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# ─────────────────────────────────────────────────────────────────────────────
# Dev-Lead Agent — thin caller stub
# Standard: petry-projects/.github/standards/ci-standards.md#5-dev-lead-agent
Expand Down Expand Up @@ -67,9 +67,9 @@
# Promotion is done by moving the channel tags centrally; this
# caller is never edited on release. agent_ref threads the same channel into
# 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/v139-stable # NOSONAR(githubactions:S7637) first-party channel ref
uses: petry-projects/.github-private/.github/workflows/dev-lead-reusable.yml@dev-lead/v139-next # NOSONAR(githubactions:S7637) first-party channel ref

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skipping the SHA-pin request: this uses: reference targets one of the org's own reusable workflows on a moving release-channel tag (@<agent>/v<MAJOR>-<tier>), which is the sanctioned first-party mutable-ref exception per AGENTS.md ("Release channel tags & the mutable-ref exception"). Pinning it to a commit SHA would freeze it off the central rollout/rollback mechanism and is rejected by the reusable-pin compliance audit, so the ref is intentionally left on its channel tag. Note: the flagged -next refs have separately been reverted to their canonical -stable channel in this pass.

with:
agent_ref: dev-lead/v139-stable
agent_ref: dev-lead/v139-next
Comment on lines +70 to +72

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: The dev-lead reusable and agent_ref now use next, rearming the self-hosting circular dependency that SC2 requires this workflow to avoid. [state/lifecycle]

Assessment: 🔴 Critical · 🔁 Occurrence: Often

Use CodeAnt Skill Fix in Cursor Fix in VSCode Claude

Prompt for AI Agent 🤖
This is a comment left during a code review.

**Path:** .github/workflows/dev-lead.yml
**Line:** 70:72
**Comment:**
	*State Lifecycle: The dev-lead reusable and `agent_ref` now use `next`, rearming the self-hosting circular dependency that SC2 requires this workflow to avoid.

Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
👍 | 👎

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in .github/workflows/dev-lead.yml: reverted both the uses: pin and the forwarded agent_ref from dev-lead/v139-next back to dev-lead/v139-stable. Per SC2 (tests/test_sc2_self_review_channel.bats and the stub's own inline comment), this self-host caller must stay on a stable tier so a broken next cannot gate its own fix; the revert de-arms the self-hosting circular dependency and restores caller-stub-freeze byte-identity (baseline now ALIGNED).

Comment thread
coderabbitai[bot] marked this conversation as resolved.
secrets: inherit # NOSONAR(githubactions:S7635) first-party trusted reusable
permissions:
contents: write
Expand Down
14 changes: 1 addition & 13 deletions .github/workflows/pr-auto-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# reusable workflow above.
# • You MAY change: the workflow name(s) in `workflow_run.workflows` to match
# your repository's CI workflow name(s).
# • You MUST NOT change: the `@pr-auto-review/v1-next` channel in the `uses:`
# • You MUST NOT change: the `@pr-auto-review/v1-stable` channel in the `uses:`
Comment thread
coderabbitai[bot] marked this conversation as resolved.
# line — this reusable is on the org-wide moving-channel model (rollout and
# rollback are a single central tag move; a frozen `@vN`/`@<sha>` pin is
# rejected by the compliance audit). Nor the trigger event types or the
Expand Down Expand Up @@ -46,18 +46,6 @@ permissions: {}

jobs:
pr-auto-review:
# Skip Dependabot-authored events (#1390, mirrors the #864 guard in
# dev-lead-reusable.yml): a Dependabot `pull_request` run has no access to
# GH_PAT_WORKFLOWS, so the secrets expression below resolves empty and the
# reusable's ready-check checkout fails at startup with
# "Input required and not supplied: token". Dependabot PRs are handled by
# dependabot-automerge.yml and never need the review-agent dispatch, so
# skipping cleanly here removes the false failure without touching the
# channel, trigger event types, or permissions block.
# Two conditions: actor covers Dependabot-triggered events (pull_request,
# workflow_run); PR-author login covers pull_request_review events where the
# actor is the human reviewer, not Dependabot.
if: github.actor != 'dependabot[bot]' && github.event.pull_request.user.login != 'dependabot[bot]'
permissions:
pull-requests: read
checks: read
Expand Down
Loading