-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handling 'system reserved names' like actions_step_debug #130
Comments
I could not reproduce this. I prepared the following tiny workflow: on: push
jobs:
some_job:
runs-on: ubuntu-latest
steps:
- run: echo ${{ secrets.ACTIONS_STEP_DEBUG }} and I ran:
but it did not report any error. Is there any other pre-condition? |
OK, I think I understood what you meant.
This means a workflow like below, am I correct? (not a caller, but a callee of reusable workflow) on:
workflow_call:
jobs:
test:
runs-on: ubuntu-latest
steps:
- run: echo ${{ secrets.ACTIONS_STEP_DEBUG }} Then I could get the following error.
Currently |
I don't know what secrets are actually reserved. If you have any official document for the list of such secrets, please let me know the pointer. |
I'll see if I can find a document |
Situation:
Hello,
I have a step in my workflow_call that makes use of GitHub Actions system secrets like
${{ secrets.ACTIONS_STEP_DEBUG }}
. Action lint sees this as an error reporting the following error:I understand that this error is reported because it's not referenced in the inputs section under
workflow_call:
.Being that this is a "system reserved" secret/variable we can't include it in the inputs without receiving the following error:
How to reproduce:
Create a workflow_call and in a step use a system reserved name/secret like
${{ secrets.ACTIONS_STEP_DEBUG }}
.Expected behavior:
Actionlint should ignore the fact that system reserved names are included in a workflow_call as they cannot be added as inputs.
Version Used:
Super-linter: 4.9.1
Actionlint: 1.6.10
The text was updated successfully, but these errors were encountered: