Conversation
There was a problem hiding this comment.
Pull request overview
Adds support for a dedicated CI-trigger token (GH_AW_CI_TRIGGER_TOKEN / github-ci-trigger-token) so PR creation and branch pushes can trigger downstream GitHub Actions workflows that would otherwise be suppressed when using GITHUB_TOKEN.
Changes:
- Extends safe-output configs (Go structs + JSON schema) with
github-ci-trigger-tokenand wires env injection for CI-trigger pushes. - Updates JS safe output handlers (
create_pull_request,push_to_pull_request_branch) to attempt a CI-trigger empty commit after successful operations. - Updates documentation (auth, safe-outputs reference, FAQ) and propagates the new secret into various locked workflows.
Reviewed changes
Copilot reviewed 44 out of 44 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/workflow/push_to_pull_request_branch.go | Adds GithubCITriggerToken to push-to-PR-branch config and parses the new field. |
| pkg/workflow/create_pull_request.go | Adds GithubCITriggerToken to create-PR config and emits GH_AW_CI_TRIGGER_TOKEN env for the job. |
| pkg/workflow/compiler_safe_outputs_job.go | Adds job-level GH_AW_CI_TRIGGER_TOKEN env selection for consolidated safe outputs. |
| pkg/parser/schemas/main_workflow_schema.json | Adds github-ci-trigger-token to the workflow schema for create-PR and push-to-PR-branch. |
| docs/src/content/docs/reference/safe-outputs.md | Documents CI triggering behavior and configuration for safe outputs. |
| docs/src/content/docs/reference/faq.md | Adds recommended guidance for CI triggering using the new token mechanism. |
| docs/src/content/docs/reference/auth.mdx | Documents new GH_AW_CI_TRIGGER_TOKEN secret and precedence/options. |
| actions/setup/js/push_to_pull_request_branch.cjs | Calls pushCITriggerCommit after pushing changes (when changes exist). |
| actions/setup/js/create_pull_request.cjs | Calls pushCITriggerCommit after PR creation. |
| .github/workflows/weekly-safe-outputs-spec-review.lock.yml | Exposes GH_AW_CI_TRIGGER_TOKEN from repo secrets to the workflow job env. |
| .github/workflows/weekly-editors-health-check.lock.yml | Exposes GH_AW_CI_TRIGGER_TOKEN from repo secrets to the workflow job env. |
| .github/workflows/unbloat-docs.lock.yml | Exposes GH_AW_CI_TRIGGER_TOKEN from repo secrets to the workflow job env. |
| .github/workflows/ubuntu-image-analyzer.lock.yml | Exposes GH_AW_CI_TRIGGER_TOKEN from repo secrets to the workflow job env. |
| .github/workflows/tidy.lock.yml | Exposes GH_AW_CI_TRIGGER_TOKEN from repo secrets to the workflow job env. |
| .github/workflows/test-create-pr-error-handling.lock.yml | Exposes GH_AW_CI_TRIGGER_TOKEN from repo secrets to the workflow job env. |
| .github/workflows/technical-doc-writer.lock.yml | Exposes GH_AW_CI_TRIGGER_TOKEN from repo secrets to the workflow job env. |
| .github/workflows/smoke-project.lock.yml | Exposes GH_AW_CI_TRIGGER_TOKEN from repo secrets to the workflow job env. |
| .github/workflows/smoke-multi-pr.lock.yml | Exposes GH_AW_CI_TRIGGER_TOKEN from repo secrets to the workflow job env. |
| .github/workflows/smoke-claude.lock.yml | Exposes GH_AW_CI_TRIGGER_TOKEN from repo secrets to the workflow job env. |
| .github/workflows/slide-deck-maintainer.lock.yml | Exposes GH_AW_CI_TRIGGER_TOKEN from repo secrets to the workflow job env. |
| .github/workflows/refiner.lock.yml | Exposes GH_AW_CI_TRIGGER_TOKEN from repo secrets to the workflow job env. |
| .github/workflows/q.lock.yml | Exposes GH_AW_CI_TRIGGER_TOKEN from repo secrets to the workflow job env. |
| .github/workflows/poem-bot.lock.yml | Exposes GH_AW_CI_TRIGGER_TOKEN from repo secrets to the workflow job env. |
| .github/workflows/mergefest.lock.yml | Exposes GH_AW_CI_TRIGGER_TOKEN from repo secrets to the workflow job env. |
| .github/workflows/layout-spec-maintainer.lock.yml | Exposes GH_AW_CI_TRIGGER_TOKEN from repo secrets to the workflow job env. |
| .github/workflows/jsweep.lock.yml | Exposes GH_AW_CI_TRIGGER_TOKEN from repo secrets to the workflow job env. |
| .github/workflows/instructions-janitor.lock.yml | Exposes GH_AW_CI_TRIGGER_TOKEN from repo secrets to the workflow job env. |
| .github/workflows/hourly-ci-cleaner.lock.yml | Exposes GH_AW_CI_TRIGGER_TOKEN from repo secrets to the workflow job env. |
| .github/workflows/go-logger.lock.yml | Exposes GH_AW_CI_TRIGGER_TOKEN from repo secrets to the workflow job env. |
| .github/workflows/glossary-maintainer.lock.yml | Exposes GH_AW_CI_TRIGGER_TOKEN from repo secrets to the workflow job env. |
| .github/workflows/github-mcp-tools-report.lock.yml | Exposes GH_AW_CI_TRIGGER_TOKEN from repo secrets to the workflow job env. |
| .github/workflows/functional-pragmatist.lock.yml | Exposes GH_AW_CI_TRIGGER_TOKEN from repo secrets to the workflow job env. |
| .github/workflows/dictation-prompt.lock.yml | Exposes GH_AW_CI_TRIGGER_TOKEN from repo secrets to the workflow job env. |
| .github/workflows/developer-docs-consolidator.lock.yml | Exposes GH_AW_CI_TRIGGER_TOKEN from repo secrets to the workflow job env. |
| .github/workflows/daily-workflow-updater.lock.yml | Exposes GH_AW_CI_TRIGGER_TOKEN from repo secrets to the workflow job env. |
| .github/workflows/daily-rendering-scripts-verifier.lock.yml | Exposes GH_AW_CI_TRIGGER_TOKEN from repo secrets to the workflow job env. |
| .github/workflows/daily-doc-updater.lock.yml | Exposes GH_AW_CI_TRIGGER_TOKEN from repo secrets to the workflow job env. |
| .github/workflows/craft.lock.yml | Exposes GH_AW_CI_TRIGGER_TOKEN from repo secrets to the workflow job env. |
| .github/workflows/code-simplifier.lock.yml | Exposes GH_AW_CI_TRIGGER_TOKEN from repo secrets to the workflow job env. |
| .github/workflows/code-scanning-fixer.lock.yml | Exposes GH_AW_CI_TRIGGER_TOKEN from repo secrets to the workflow job env. |
| .github/workflows/cloclo.lock.yml | Exposes GH_AW_CI_TRIGGER_TOKEN from repo secrets to the workflow job env. |
| .github/workflows/ci-coach.lock.yml | Exposes GH_AW_CI_TRIGGER_TOKEN from repo secrets to the workflow job env. |
| .github/workflows/changeset.lock.yml | Exposes GH_AW_CI_TRIGGER_TOKEN from repo secrets to the workflow job env. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Hey @dsyme 👋 — thanks for working on the CI trigger token feature! This is a valuable enhancement that addresses a real pain point with However, this PR violates the contribution process outlined in CONTRIBUTING.md: 🚫 Traditional Pull Requests Are Not Enabled From CONTRIBUTING.md:
The correct workflow is:
Additional Issues:
What to do: The issue #17800 contains a good foundation, but it needs a more detailed implementation plan for the agent to execute. I recommend:
Thanks for understanding — this process helps maintain consistency and demonstrates the agentic workflow approach that gh-aw is built on! 🤖
|
Summary
GH_AW_CI_TRIGGER_TOKENsecret andgithub-ci-trigger-tokensafe output option to push an empty commit after PR creation or branch push, triggering CI events thatGITHUB_TOKENcannot triggerpushCITriggerCommitlogic increate_pull_request.cjsandpush_to_pull_request_branch.cjs, with support for explicit token, GitHub App token (app), or implicit secret fallback