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

Documentation clarification and token usage with dry run #506

Open
module17 opened this issue Feb 19, 2023 · 1 comment
Open

Documentation clarification and token usage with dry run #506

module17 opened this issue Feb 19, 2023 · 1 comment
Labels

Comments

@module17
Copy link

module17 commented Feb 19, 2023

When attempting to run with dryRun option, I'm getting a 403 Forbidden when supplying a GL_TOKEN with only read_repository scope enabled. Documentation states this is the only scope required for a dry run.

Adding the read_api scope resolves the 403 issue. Is this required?

While attempting a dry run, the process repeatedly asks for SSH key passphrase. I would assume the token would be used for all operations. Is this not expected behaviour?

Thanks for looking!

@fgreinacher
Copy link
Contributor

Wow, sorry for the late response @module17 🙈

Adding the read_api scope resolves the 403 issue. Is this required?

Yes, we need read_api so that we check permissions: https://github.com/semantic-release/gitlab/blob/master/lib/verify.js#L67

While attempting a dry run, the process repeatedly asks for SSH key passphrase. I would assume the token would be used for all operations. Is this not expected behaviour?

Yes, the token is used for all API operations made by this plugin. Maybe you're running into the same issues as here? semantic-release/semantic-release#2053

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

No branches or pull requests

2 participants