Closed donavanbecker closed 3 years ago
I'll take a look to investigate next year (Monday 😄)
happy new year!
I just ran into this same error 😞
This is how I configured the auto-merge action:
name: auto-merge
on:
pull_request:
jobs:
auto-merge:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ahmadnassri/action-dependabot-auto-merge@v2
with:
target: minor
github-token: ${{ secrets.mytoken }}
This is probably the github-token
is not set properly, you might want to change it to your own secret. According to the doc
GitHub automatically creates a GITHUB_TOKEN secret to use in your workflow. You can use the GITHUB_TOKEN to authenticate in a workflow run.
So you can simple put
github-token: ${{ secrets.GITHUB_TOKEN }}
This is probably the
github-token
is not set properly, you might want to change it to your own secret. According to the docGitHub automatically creates a GITHUB_TOKEN secret to use in your workflow. You can use the GITHUB_TOKEN to authenticate in a workflow run.
So you can simple put
github-token: ${{ secrets.GITHUB_TOKEN }}
I did that and it still didn't work.
@donavanbecker the default provided secrets.GITHUB_TOKEN
is not sufficient, I did see that you had used different tokens in previous commits ... but perhaps the scope wasn't correctly set?
see the README on the requried scope: https://github.com/ahmadnassri/action-dependabot-auto-merge#token-scope
that said, the error is from the @actions/core
library and it's not seeing any value assigned to github-token
so the secret is not even passed to the action ... is this a repo secret? or an org secret?
The Full Run Workflow File