Wire up EXTRA_COMMIT_GITHUB_TOKEN for trigger workflows#480
Conversation
Modify scripts/dogfood.sh to auto-inject the EXTRA_COMMIT_GITHUB_TOKEN secret into trigger files whose corresponding lock workflows accept it. This enables commits made by these workflows to trigger downstream CI runs, since the default GITHUB_TOKEN doesn't trigger other workflows. Affected trigger files (12): - trigger-bug-exterminator.yml - trigger-code-duplication-fixer.yml - trigger-code-simplifier.yml - trigger-mention-in-issue.yml - trigger-mention-in-pr-by-id.yml - trigger-mention-in-pr.yml - trigger-newbie-contributor-fixer.yml - trigger-pr-actions-fixer.yml - trigger-pr-review-addresser.yml - trigger-small-problem-fixer.yml - trigger-test-improver.yml - trigger-text-beautifier.yml Co-authored-by: strawgate <6384545+strawgate@users.noreply.github.com>
Use temp file + mv pattern instead of sed -i, matching existing awk pattern in dogfood.sh and avoiding macOS sed incompatibility. Co-authored-by: strawgate <6384545+strawgate@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (4)
💤 Files with no reviewable changes (3)
📝 WalkthroughWalkthroughRemoves several auto-generated trigger workflows from .github/workflows (bug-exterminator, code-duplication-fixer, code-simplifier, newbie-contributor-fixer, pr-actions-fixer, pr-review-addresser, small-problem-fixer, test-improver, text-beautifier). Adds EXTRA_COMMIT_GITHUB_TOKEN to the secrets mapping in mention-related workflows (trigger-mention-in-issue, trigger-mention-in-pr-by-id, trigger-mention-in-pr). Updates scripts/dogfood.sh to exclude those workflows from dogfooding and to inject EXTRA_COMMIT_GITHUB_TOKEN into generated lock workflows when present. No public/exported APIs were changed. Possibly related PRs
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment |
|
@copilot this is only needed for workflows which pushes changes to a branch or makes a pr |
That's exactly what's implemented — the script checks if the corresponding |
There was a problem hiding this comment.
Requesting changes: this diff removes six generated trigger workflows (trigger-bug-exterminator.yml, trigger-code-duplication-fixer.yml, trigger-newbie-contributor-fixer.yml, trigger-pr-actions-fixer.yml, trigger-small-problem-fixer.yml, trigger-text-beautifier.yml), which disables their workflow_dispatch/scheduled entrypoints and prevents the corresponding lock workflows from running. Please restore/regenerate those trigger files and keep only the intended EXTRA_COMMIT_GITHUB_TOKEN wiring changes.
What is this? | From workflow: PR Review
Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.
Phase out fixer workflows by adding them to the exclusion list: bug-exterminator, code-duplication-fixer, code-simplifier, newbie-contributor-fixer, pr-actions-fixer, pr-review-addresser, small-problem-fixer, test-improver, text-beautifier Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
| EXCLUDED_WORKFLOWS=( | ||
| "bug-exterminator" | ||
| "code-duplication-fixer" | ||
| "code-simplifier" |
There was a problem hiding this comment.
[HIGH] Non-fixer workflows are being unintentionally disabled
Adding code-simplifier, pr-review-addresser, and test-improver to EXCLUDED_WORKFLOWS removes their generated trigger files (rm -f .github/workflows/trigger-$dir.yml), which drops their schedule/workflow_dispatch (and pull_request_review for addresser) entrypoints.
Concrete impact: after running scripts/dogfood.sh, these three workflows no longer have trigger wrappers even though their workflow sources still exist (gh-agent-workflows/*/example.yml) and their lock workflows declare EXTRA_COMMIT_GITHUB_TOKEN, so token wiring for them never happens and they stop being invokable via trigger workflows.
Trigger workflows now automatically forward
EXTRA_COMMIT_GITHUB_TOKENwhen the corresponding lock workflow accepts it, so workflow-created commits can trigger downstream CI reliably.Changes
Updated
scripts/dogfood.shto:bug-exterminator,code-duplication-fixer,code-simplifier,newbie-contributor-fixer,pr-actions-fixer,pr-review-addresser,small-problem-fixer,test-improver,text-beautifier), andEXTRA_COMMIT_GITHUB_TOKEN: $\{\{ secrets.EXTRA_COMMIT_GITHUB_TOKEN }}into generated trigger workflowsecretsonly when.github/workflows/gh-aw-(workflow).lock.ymldeclaresEXTRA_COMMIT_GITHUB_TOKEN.Regenerated trigger workflows accordingly:
EXTRA_COMMIT_GITHUB_TOKENto:trigger-mention-in-issue.ymltrigger-mention-in-pr-by-id.ymltrigger-mention-in-pr.ymltrigger-bug-exterminator.ymltrigger-code-duplication-fixer.ymltrigger-code-simplifier.ymltrigger-newbie-contributor-fixer.ymltrigger-pr-actions-fixer.ymltrigger-pr-review-addresser.ymltrigger-small-problem-fixer.ymltrigger-test-improver.ymltrigger-text-beautifier.ymlFixes Wire up extra commit GitHub token for triggers in this repo #478