actionlint
actionlint copied to clipboard
Description key is not required for workflow_call secrets
The following syntax:
name: Callable Workflow
on:
workflow_call:
secrets:
MY_TOKEN:
jobs:
main:
runs-on: ubuntu-latest
steps:
- run: gh pr comment --body "Test comment"
env:
GH_TOKEN: ${{ secrets.MY_TOKEN }}
Results in an error:
"description" is missing at "my_token" secret of workflow_call event
However, the description is optional.
However, the description is optional.
Can you show a link to official document?
I verified with experiments:
- Callable workflow (note no description): https://github.com/Andrew-Test-Org/Public-Test-Repo/blob/main/.github/workflows/callableWorkflow.yml
- Caller workflow: https://github.com/Andrew-Test-Org/Public-Test-Repo/blob/main/.github/workflows/dispatchableWorkflow.yml
- Workflow run: https://github.com/Andrew-Test-Org/Public-Test-Repo/runs/7262021723?check_suite_focus=true
Documentation is lacking: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_callsecrets
In this example you can see the description key in the yml
but not documented elsewhere.
Thanks for fixing this @rhysd! 🎉 🙇