Unwanted warning for undefined input variable in action.yml
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 1.4k
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 24
Description
Customer developed an action with dynamic inputs, when specify inputs which not mentioned in action.yml, warning will show on logs:
##[warning]Unexpected input 'service', valid inputs are ['file']
Is there a way to avoid this warning? The issue is also happened in octokit/request-action .
There is the ticket in community forum.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported action.yml case: declare only file, pass a dynamic service input, and observe the runner log warning. Review the runner's input-validation behavior and the linked octokit/request-action and community discussions; done requires a decided behavior for undeclared inputs and corresponding validation that preserves warnings for genuinely invalid cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- ci-cd
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100