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
2 changes: 1 addition & 1 deletion .github/workflows/auto-rebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,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@v2
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/ci-failure-analyst.lock.yml

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

2 changes: 1 addition & 1 deletion .github/workflows/dependabot-automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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@v2
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/dependency-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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@v2
2 changes: 1 addition & 1 deletion .github/workflows/feature-ideation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
discussions: write
id-token: write
actions: read
uses: petry-projects/.github/.github/workflows/feature-ideation-reusable.yml@d3d768dabb7f28cc63283cdfe48630da53700e50 # v1
uses: petry-projects/.github/.github/workflows/feature-ideation-reusable.yml@376a4fcb1117444595e3e702fa450873d0e54310 # v2
with:
# === CUSTOMISE THIS PER REPO — the only required edit ===
project_context: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/idea-enhancer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
if: ${{ steps.gather.outputs.count != '0' }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: anthropics/claude-code-action@787c5a0ce96a9a6cfb050ea0c8f4c05f2447c251 # v1.0.133
uses: anthropics/claude-code-action@d5726de019ec4498aa667642bc3a80fca83aa102 # v1.0.148
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/idea-triage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
- name: Rank ripeness and refresh the queue
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: anthropics/claude-code-action@787c5a0ce96a9a6cfb050ea0c8f4c05f2447c251 # v1.0.133
uses: anthropics/claude-code-action@d5726de019ec4498aa667642bc3a80fca83aa102 # v1.0.148
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/initiative-planner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ jobs:
id: bob
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: anthropics/claude-code-action@787c5a0ce96a9a6cfb050ea0c8f4c05f2447c251 # v1.0.133
uses: anthropics/claude-code-action@d5726de019ec4498aa667642bc3a80fca83aa102 # v1.0.148
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
# CRITICAL (same gotcha as feature-ideation): pass the workflow's
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/issue-triage-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
result: ${{ steps.run.outputs.result }}
skip: ${{ steps.run.outputs.skip }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false

Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
contents: read
issues: write
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/repair-pr-approvals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

- name: Repair PR approvals
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
java-version: '21'
- name: SonarCloud Scan
if: ${{ env.SONAR_TOKEN != '' }}
uses: SonarSource/sonarqube-scan-action@7006c4492b2e0ee0f816d36501671557c97f5995 # v8.1.0
uses: SonarSource/sonarqube-scan-action@713881670b6b3676cda39549040e2d88c70d582e # v8.2.0
with:
args: >
-Dsonar.scanner.javaExePath=${{ steps.setup_java.outputs.path }}/bin/java
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

- name: Run copilot_chat tests
run: bash tests/test_copilot_chat.sh
Expand Down
8 changes: 4 additions & 4 deletions tests/dev-lead/integration/test_auto_rebase_stub.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env python3
"""Validate that auto-rebase.yml uses the @v1 version tag, not a SHA.
"""Validate that auto-rebase.yml uses the @v2 version tag, not a SHA.

AGENTS.md §"Release channel tags & the mutable-ref exception" exempts first-party
reusable workflows from the SHA-pin standard. The correct reference for the
auto-rebase reusable is the versioned tag `@v1`, matching the canonical stub at
auto-rebase reusable is the versioned tag `@v2`, matching the canonical stub at
standards/workflows/auto-rebase.yml in petry-projects/.github.

Regression guard: a SHA-pinned reference is a compliance violation (issue #139).
Expand All @@ -20,7 +20,7 @@

WORKFLOW = ".github/workflows/auto-rebase.yml"
REUSABLE = "petry-projects/.github/.github/workflows/auto-rebase-reusable.yml"
EXPECTED_REF = "@v1"
EXPECTED_REF = "@v2"
SHA_PATTERN = re.compile(r"@[0-9a-f]{40}\b")


Expand Down Expand Up @@ -63,7 +63,7 @@ def main() -> int:
failures.append(
f" SHA-pinned: {ref!r}\n"
f" Expected: '{REUSABLE}{EXPECTED_REF}'\n"
" Reason: first-party reusable workflows must use the @v1 version\n"
" Reason: first-party reusable workflows must use the @v2 version\n"
" tag, not a SHA (AGENTS.md §Release channel tags)."
)
elif not ref.endswith(EXPECTED_REF):
Expand Down
8 changes: 4 additions & 4 deletions tests/dev-lead/integration/test_dependency_audit_stub.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env python3
"""Validate that dependency-audit.yml is the canonical org stub pinned to @v1.
"""Validate that dependency-audit.yml is the canonical org stub pinned to @v2.

The org standard requires dependency-audit.yml to be a thin caller stub that
delegates to the reusable at @v1 (not @v2 or any other ref).
delegates to the reusable at @v2 (not a SHA or any other ref).

Standard: petry-projects/.github/standards/ci-standards.md#centralization-tiers
Source of truth: petry-projects/.github/standards/workflows/dependency-audit.yml
Expand All @@ -18,7 +18,7 @@
sys.exit(2)

WORKFLOW = ".github/workflows/dependency-audit.yml"
EXPECTED_USES = "petry-projects/.github/.github/workflows/dependency-audit-reusable.yml@v1"
EXPECTED_USES = "petry-projects/.github/.github/workflows/dependency-audit-reusable.yml@v2"


def main() -> int:
Expand Down Expand Up @@ -53,7 +53,7 @@ def main() -> int:
print(
f"FAIL: {WORKFLOW} job '{job_key}' uses '{uses}'\n"
f" Expected: '{EXPECTED_USES}'\n"
f" Fix: replace the `uses:` value with the canonical @v1 ref."
f" Fix: replace the `uses:` value with the canonical @v2 ref."
)
return 1

Expand Down
Loading