chore(workflows): adopt centralized stubs from petry-projects/.github#78
chore(workflows): adopt centralized stubs from petry-projects/.github#78
Conversation
Replace inline copies of standardized workflows with the canonical thin caller stubs from petry-projects/.github/standards/workflows/. Each stub delegates to a versioned reusable workflow at petry-projects/.github/.github/workflows/<name>-reusable.yml@v1, so future updates to the standard propagate automatically and drift is caught by the org-wide compliance audit. See petry-projects/.github#87, #88, #89 for context. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThe PR refactors GitHub Actions workflows across the repository. The claude workflow transitions from a reusable-workflow invocation to an in-file job running the anthropic/claude-code-action directly with explicit conditions and permissions. Simultaneously, three workflows (dependabot-automerge, dependabot-rebase, and dependency-audit) move their inline implementations into delegating calls to org-level reusable workflows. The feature-ideation workflow receives minor updates to input descriptions and reusable-workflow version pinning. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Pull request overview
Updates this repo’s GitHub Actions workflows to use the organization’s centralized “thin caller stub” pattern, delegating execution to reusable workflows in petry-projects/.github pinned at @v1 to reduce drift and simplify future updates.
Changes:
- Replace inline workflow logic with
uses: petry-projects/.github/.github/workflows/*-reusable.yml@v1callers. - Standardize workflow headers/documentation to point to the central “source of truth” stubs.
- Simplify Dependabot and dependency audit workflows to delegate all logic to reusables.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/feature-ideation.yml | Converted to a reusable-workflow caller stub and updated inputs/docs; project_context now needs repo-specific content. |
| .github/workflows/dependency-audit.yml | Replaced full in-repo audit implementation with a @v1 reusable caller job. |
| .github/workflows/dependabot-rebase.yml | Replaced inline GH CLI rebase/merge logic with a @v1 reusable caller job and inherited secrets. |
| .github/workflows/dependabot-automerge.yml | Replaced inline eligibility/approval logic with a @v1 reusable caller job and inherited secrets. |
| .github/workflows/claude.yml | Pinned reusable workflow reference from @main to @v1 and updated stub header/docs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
claude-code-action self-validates that .github/workflows/claude.yml in a PR is byte-identical to main and refuses to run if it has changed. This blocks PR-driven updates to claude.yml even with admin merge, because branch protection treats the failed claude-code check as a required gate. Keep this sweep PR focused on the other Tier 1 stubs that merge cleanly. claude.yml will be updated via a follow-up direct change.
Blocked: required-check name changeThis PR cannot merge because this repo's branch protection ruleset requires status checks under their pre-centralization names, but moving to a reusable workflow changes the check name to For example, this repo currently requires:
After centralization the same checks become:
Both To unblockUpdate this repo's required-status-checks ruleset to reference the new names. Either via the GitHub UI (Settings → Rulesets → main → Required status checks) or via: gh api repos/petry-projects/markets/rulesets/<id> \
--method PUT \
--input - <<'JSON'
{
"rules": [{
"type": "required_status_checks",
"parameters": {
"required_status_checks": [
{"context": "claude-code / claude"},
{"context": "agent-shield / AgentShield"},
{"context": "dependency-audit / Detect ecosystems"}
]
}
}]
}
JSONAfter the ruleset update, this PR will merge cleanly. What's already in this PRThe non-claude.yml stubs (dependabot-automerge, dependency-audit, dependabot-rebase, feature-ideation) are ready to land. I'll leave this PR open. Once you update the ruleset, it can be merged via the regular flow. |
|
… header Closes #79. The file was already a thin caller stub but pointed at @main. Bumps to @v1 (the canonical pinned version, see petry-projects/.github#88) and prepends the standardized SOURCE OF TRUTH header so future agents know what they may and may not edit. This was deferred from #78 because claude-code-action's GitHub App refuses to mint a token for any PR whose diff includes a workflow file, and `claude-code / claude` was previously a required status check on this repo. The check is no longer required (removed yesterday from ruleset 14805963 and from classic branch protection), so the expected `claude-code / claude` job failure on this PR will be a non-blocking warning rather than a merge gate.
… header (#80) Closes #79. The file was already a thin caller stub but pointed at @main. Bumps to @v1 (the canonical pinned version, see petry-projects/.github#88) and prepends the standardized SOURCE OF TRUTH header so future agents know what they may and may not edit. This was deferred from #78 because claude-code-action's GitHub App refuses to mint a token for any PR whose diff includes a workflow file, and `claude-code / claude` was previously a required status check on this repo. The check is no longer required (removed yesterday from ruleset 14805963 and from classic branch protection), so the expected `claude-code / claude` job failure on this PR will be a non-blocking warning rather than a merge gate. Co-authored-by: DJ <dj@Rachels-MacBook-Air.local>


Summary
Replaces inline copies of standardized workflows with the canonical thin caller stubs from
petry-projects/.github/standards/workflows/. Each stub delegates to the org-level reusable workflow atpetry-projects/.github/.github/workflows/<name>-reusable.yml@v1.Why
Future updates to the standard propagate automatically without per-repo PRs, and drift is caught by the org-wide compliance audit (petry-projects/.github#89).
See petry-projects/.github#87 (build reusables), petry-projects/.github#88 (pin to v1, document tier model), petry-projects/.github#89 (audit drift detection).
Test plan
actionlintclean🤖 Generated with Claude Code
Summary by CodeRabbit