Inputs.required not enforced with no default? #26777
-
Hi, I’m following the GitHub Actions: Writing JavaScript Actions course and I have a question regarding the I updated my
In the workflow, I don’t provide the input either:
Observed results: the action is successfully ran:
Expected results: an error is raised. Here is the repo+commit corresponding: writing-javascript-actions/.github/workflows at 0dcc416d922c1572124153b9b949fec172b59aaf · gjadi-mej/writing-javascript-actions · GitHub Here is the documentation (source):
The doc doesn’t say anything about raising an error but, to me, that’s the meaning of the world Did I miss something? Best, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I had a quick look through actions/runner and can’t see anything that implements the “required” functionality for action inputs. For inputs that aren’t specified in the workflow the default is used if set, otherwise an empty string is used. There’s no check that a value was specified in the workflow for “required” inputs |
Beta Was this translation helpful? Give feedback.
-
Ok, thanks for checking this out. Best, |
Beta Was this translation helpful? Give feedback.
-
This issue looks to be for the same problem you described: Validate required inputs are set before invoking an action · Issue #1070 · actions/runner · GitHub |
Beta Was this translation helpful? Give feedback.
This issue looks to be for the same problem you described: Validate required inputs are set before invoking an action · Issue #1070 · actions/runner · GitHub