Skip to content
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

Issue with github-token #207

Open
steven-murray opened this issue Mar 1, 2023 · 5 comments
Open

Issue with github-token #207

steven-murray opened this issue Mar 1, 2023 · 5 comments

Comments

@steven-murray
Copy link

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.

@morey-tech
Copy link

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

@steven-murray
Copy link
Author

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.

@lpgera
Copy link

lpgera commented Apr 1, 2023

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

@steven-murray
Copy link
Author

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

@AndyHoang
Copy link

Doc was removed in #58 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants