-
Notifications
You must be signed in to change notification settings - Fork 93
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] ##[error]Parameter token or opts.auth is required #39
Comments
Hey @rodrigondec thanks so much for raising this issue and providing all the detailed information. Do you know how to fix it or replicate it? I will have to spend some time investigating the problem, I haven't seen it before. I am currently thinking about updating the package and seeing if it is still a problem. |
Don't know either. I have re-run the job but still has error. I'm using your action on other projects and didn't have this issue. I don't understand either why did it happen by analyzing the code and ref I found. |
I just ran into this error as well. I had stored the |
Oh that is interesting! I will add it to issue #38 thanks @conarro! Let me know if that fixes your error @rodrigondec |
If I get you correct, you have a project in a repository which is part of an organization. Shouldn't organization level access also provide access to projects of all repositories ? |
I think it is a tedious job to configure secret for all repositories of an organization. @alex-page is this intentionally or there is not a straight forward way to allow organization level token manage projects of all repositories. On a personal note, I won't like configuring secrets for all repositories individually. |
Yeah it is definitely hard. I would avoid documenting organization secrets or have a sentence saying we don't recommend it's usage. This is also confusing if people set up private repos in organisations:
|
I have my secrets on the repo itself. Not on the org. This bug is highly esoteric 🤣 Proofs |
@alex-page digged some other codes and docs. I edited the issue 😄 |
@rodrigondec some people had issues using |
Sure, I'll modify and post the results. But if this is the cause the problem lies on the lib used ( Considering I'm using https://github.com/imobanco/icnab240/runs/679469380?check_suite_focus=true Proof |
I switched the name of my secret and put it on the Organization. The run I tested worked perfectly fine. This doesn't help to discover why the bug happened on the first place 😅 Maybe it's the case to open issues on the libs I mentioned? Proofs |
@rodrigondec that might be a good idea. I have secrets in organisation repositories and it works for me fine. I wonder if there is something else going on here? |
I tried using Will post back here if I do any other combinations.
Just to clarify, the issue here is not having secrets in organization repositories, but secrets that live at the organization-level itself. |
@conarro is it running from forked repos? I opened a issue on actions/toolkit#465 and discovered the cause for my error. |
Re-opening this issue until #38 is done |
@rodrigondec no, no forks in my setup sadly. |
Resume
I'm receiving the error
##[error]Parameter token or opts.auth is required
on this run on my CIProofs
Description & code digging
On this line of code of this action is used:
In the package
@actions/github
on this line of code (which probably raises the error) is used:In the package
@ocktokit/core
on this line of code there's the following explanation/documentation:Questions
Should be passed others args besides the token on this line from the action?
The construct does accept other options:
On the official documentation of
@actions/github
is used onlytoken
on the constructor.Did we miss some official documentation? Should issues be opened on
@actions/github
and@ocktokit/core
?The text was updated successfully, but these errors were encountered: