Fix smoke-trigger.yml startup_failure and missing secrets for workflow_call#18629
Fix smoke-trigger.yml startup_failure and missing secrets for workflow_call#18629
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Fixes a GitHub Actions startup_failure in smoke-trigger.yml by ensuring the caller workflow grants sufficient GITHUB_TOKEN permissions to match the requirements of the reusable workflow invoked via workflow_call.
Changes:
- Added
discussions: writeandissues: writeto the caller job permissions in.github/workflows/smoke-trigger.ymlto satisfy the callee jobs’ required permissions. - Prevents parse-time validation failure when invoking
./.github/workflows/smoke-workflow-call.lock.yml.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@copilot check this failure https://github.com/github/gh-aw/actions/runs/22474121639 |
…orkflow Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
The permissions fix resolved the Fixed in c111c0c by adding |
smoke-trigger.ymlwas failing withstartup_failurebefore any jobs ran because the caller job granted fewer permissions than the callee's jobs required, and secrets were not being passed through to the called workflow.Error 1 — Startup failure (permissions):
Error 2 — Missing secrets:
Secrets are not automatically inherited in
workflow_callcontexts withoutsecrets: inherit.Fixes in
smoke-trigger.yml:Warning
Custom agent used: ci-cleaner
Tidies up the repository CI state by formatting sources, running linters, fixing issues, running tests, and recompiling workflows
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.