action-dependabot-auto-merge icon indicating copy to clipboard operation
action-dependabot-auto-merge copied to clipboard

Issue with github-token

Open steven-murray opened this issue 2 years ago • 5 comments

Thanks for this nice action! However, I am currently having trouble with my auto-merge workflow. It is giving the following error:

/action/node_modules/@actions/core/lib/core.js:106
        throw new Error(`Input required and not supplied: ${name}`);
              ^

Error: Input required and not supplied: github-token
    at Object.getInput (/action/node_modules/@actions/core/lib/core.js:106:15)
    at file:///action/index.js:28:15
    at ModuleJob.run (node:internal/modules/esm/module_job:194:25)

See https://github.com/steven-murray/cosmotile/actions/runs/4305035435/jobs/7512149111 for example. I do have github-token set, and I have an Actions Secret defined.

steven-murray avatar Mar 01 '23 19:03 steven-murray

I ran into this error when the github-token supplied to the action didn't exist. Fixing the token reference fixed it.

morey-tech avatar Mar 20 '23 17:03 morey-tech

Hmm, well that would make sense! But as far as I can tell, my token points to a secret that definitely exists. Unless it's case-sensitive.

steven-murray avatar Mar 20 '23 17:03 steven-murray

@steven-murray Instead of specifying the secret as an Action secret, try it as a Dependabot secret! That worked for me.

lpgera avatar Apr 01 '23 16:04 lpgera

Thanks @Ipgera that worked for me too. Probably this should be added to the docs...

steven-murray avatar Apr 03 '23 01:04 steven-murray

Doc was removed in https://github.com/ahmadnassri/action-dependabot-auto-merge/issues/58#issuecomment-1718751371

AndyHoang avatar Sep 14 '23 04:09 AndyHoang