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

[BUG] Exception when executing the cla-assistant during pull - Parameter token or opts.auth is required #71

Closed
rsbeckerca opened this issue Jan 29, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@rsbeckerca
Copy link

Describe the bug
Getting a Parameter token or opts.auth is required error when the cla-assistant is run when a pull request is created, whether there is another pull request with the I have read the CLA Document and I hereby sign the CLA comment in a separate pull request comment. Currently on V2.0.3-alpha. The repo where this is being tested is rsbeckerca/TestCLA. I am suspecting that there is a step missing in the setup. Also the repo uses a main branch instead of a master branch.

To Reproduce

  1. Create a new repo.
  2. Add the cla-assistant workflow cla.yml file.
  3. Switch to a new branch
  4. Modify a file and commit.
  5. Create a pull request.

Expected behavior
The exception should not occur.

Screenshots
Error: Parameter token or opts.auth is required
at Object.getAuthString (/home/runner/work/_actions/cla-assistant/github-action/v2.0.3-alpha/lib/main.js:1:4610)
at Object.getOctokitOptions (/home/runner/work/_actions/cla-assistant/github-action/v2.0.3-alpha/lib/main.js:1:68637)
at Object.getOctokit (/home/runner/work/_actions/cla-assistant/github-action/v2.0.3-alpha/lib/main.js:1:57376)
at Object.994 (/home/runner/work/_actions/cla-assistant/github-action/v2.0.3-alpha/lib/main.js:1:226648)
at webpack_require (/home/runner/work/_actions/cla-assistant/github-action/v2.0.3-alpha/lib/main.js:1:154)
at Object.407 (/home/runner/work/_actions/cla-assistant/github-action/v2.0.3-alpha/lib/main.js:1:27687)
at webpack_require (/home/runner/work/_actions/cla-assistant/github-action/v2.0.3-alpha/lib/main.js:1:154)
at Object.210 (/home/runner/work/_actions/cla-assistant/github-action/v2.0.3-alpha/lib/main.js:1:12928)
at webpack_require (/home/runner/work/_actions/cla-assistant/github-action/v2.0.3-alpha/lib/main.js:1:154)
at Object.131 (/home/runner/work/_actions/cla-assistant/github-action/v2.0.3-alpha/lib/main.js:1:6119)

@rsbeckerca rsbeckerca added the bug Something isn't working label Jan 29, 2021
@ibakshay
Copy link
Member

ibakshay commented Feb 1, 2021

Hi @AndrewGable, thank you for reaching out to us.
Did you add your Personal Access token with repo scope into the test repository rsbeckerca/TestCLA secrets ?

Screenshot 2021-02-01 at 08 06 18

I think this is causing the issue.

@rsbeckerca
Copy link
Author

Thanks. That was it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants