Closed smt116 closed 3 years ago
mmm very strange.... seems there is no definition of the MY_GITHUB_TOKEN
in the first run
Is it possible that this is because the secret has a different name (i.e. MY_GITHUB_TOKEN: ${{ secrets.DEPENDABOT_GITHUB_TOKEN }}
)? Do you have any hints for debugging this issue?
Same problem here. Don't think it's because of a different name because I've named it MY_GITHUB_TOKEN.
I have a workflow for assigning Dependabot's pull requests to the project. It uses the
dependencies
label as the condition. The problem is that the action fails with the "MY_GITHUB_TOKEN not defined" message whenever triggered by Dependabot. It succeeds after clicking on the "re-run" button or when triggering it manually by assigning the label to the pull request.Repositories that use the workflow are organization-based. I created a PAT for myself and then assigned it as the secret to the relevant organization.
Logs