This is probably a LTA error issue, more than other kind of problem. When set-env is used, this is the recommendation issued:
The `set-env` command is disabled. Please upgrade to using Environment Files or opt into unsecure command execution by setting the `ACTIONS_ALLOW_UNSECURE_COMMANDS` environment variable to `true`. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
All's good and well. Let's then set in an action such as this one that variable to the very value indicated in the error:
- name: Busca en el cuerpo del PR
uses: actions/github-script@v3
with:
github-token: ${{secrets.GITHUB_TOKEN}}
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
script: |
# script follows
But then, this is the error obtained:
Unexpected input(s) 'ACTIONS_ALLOW_UNSECURE_COMMANDS', valid inputs are ['script', 'github-token', 'debug', 'user-agent', 'previews', 'result-encoding']
While we could follow one of these recommendations, I can't find what they mean and what's the reasonable value for them. It looks like errors like these are happening all over the place since set-env was deprecated today.
This is probably a LTA error issue, more than other kind of problem. When set-env is used, this is the recommendation issued:
All's good and well. Let's then set in an action such as this one that variable to the very value indicated in the error:
But then, this is the error obtained:
While we could follow one of these recommendations, I can't find what they mean and what's the reasonable value for them. It looks like errors like these are happening all over the place since set-env was deprecated today.