Skip to content

fix: remove secrets context expression from composite action input description#2

Merged
shenxianpeng merged 1 commit into
mainfrom
copilot/fix-devops-maturity-action-error
Apr 12, 2026
Merged

fix: remove secrets context expression from composite action input description#2
shenxianpeng merged 1 commit into
mainfrom
copilot/fix-devops-maturity-action-error

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 12, 2026

GitHub Actions evaluates ${{ }} expressions in action metadata at load time, but the secrets context is not available in composite action input descriptions — causing the runner to fail before any steps execute.

Change

Removed the expression delimiters from the github-token input description in action.yml:

# Before
description: >
  GitHub token used to create the pull request.
  Pass ${{ secrets.GITHUB_TOKEN }} or a PAT from your workflow.

# After
description: >
  GitHub token used to create the pull request.
  Pass secrets.GITHUB_TOKEN or a PAT from your workflow.

This makes the description plain text, which is its only valid use — descriptions are documentation, not evaluated expressions.

@shenxianpeng shenxianpeng marked this pull request as ready for review April 12, 2026 15:44
@shenxianpeng shenxianpeng merged commit 2482027 into main Apr 12, 2026
2 checks passed
@shenxianpeng shenxianpeng deleted the copilot/fix-devops-maturity-action-error branch April 12, 2026 15:44
@shenxianpeng shenxianpeng added the bug Something isn't working label Apr 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants