question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unwanted warning for undefined input variable in action.yml

See original GitHub issue

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.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:13
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
charles-allencommented, Dec 15, 2021

We add the warning to help the customer better debug their workflow runs like you have a typo

This is a great idea in principle, but I only need to fix a typo once. A permanent YELLOW build is a terrible trade-off for a minor one-time issue.

Accurate real-time status is literally the only job of CI – what’s the point of CI if it always shows “broken”? Please add warning suppression to GitHub Actions

Ideas:

  • Add a job property that takes a boolean: suppress-warnings: true
  • Add a job property that takes a regex pattern suppress-warnings: 'Unexpected input(s)*'
3reactions
gr2mcommented, Jun 19, 2020

@TingluoHuang I have two actions in particular that depend on undefined inputs:

  1. https://github.com/octokit/request-action/
  2. https://github.com/octokit/graphql-action/

There is no way I can define all possible inputs. Several users complained about the warnings.

Could you please add an option that allows me to explicitly allow undefined inputs?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Warning: Unexpected input(s) ..., valid inputs are ...
It's because you informed the stack_file_name: docker-compose.yaml as action input in the workflow implementation you shared.
Read more >
Solved: Script step's input variable value turning to "{{u...
In my Paris instance, Script step's input variable value is turning to "{{undefined}}". This doesn't happen in my other instances in different versions....
Read more >
How to Build Your First JavaScript GitHub Action
Let's create action.yml . This file is very important, as it will define the interface of our Action: inputs: the parameters containing data ......
Read more >
Code Inspections in PHP | PhpStorm Documentation
Reports the local variables that are used in exit statements, such as throw , return , or yield , immediately after assignment. Weak...
Read more >
How do I resolve the "undefined array key" error in PHP?
Hey make a note of the name attribute in the input element and give it a try. The below code is for your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found