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

Using a CI_JOB_TOKEN does not work with this package #183

Open
dylf opened this issue May 24, 2024 · 2 comments · May be fixed by #184
Open

Using a CI_JOB_TOKEN does not work with this package #183

dylf opened this issue May 24, 2024 · 2 comments · May be fixed by #184

Comments

@dylf
Copy link

dylf commented May 24, 2024

The built-in GitLab ${CI_JOB_TOKEN} variable does not have appropriate access to the APIs required by this tool. https://docs.gitlab.com/ee/ci/jobs/ci_job_token.html

Users of this package should be instructed to use a group/project access token or a personal access token instead.

@dylf dylf linked a pull request May 24, 2024 that will close this issue
@JounQin
Copy link
Member

JounQin commented Oct 16, 2024

Can you provide more details? Error logs for example?

@dylf
Copy link
Author

dylf commented Oct 21, 2024

It has been a long time since I changed our CI over to using an Oauth token, so I forget the specific details but IIRC earlier in the year GitLab had changed the scope of what the CI_JOB_TOKEN could access. For instance I don't think the job token can comment on or create merge requests via the api https://docs.gitlab.com/ee/ci/jobs/ci_job_token.html

These logs are from before I made the switch to using an oauth token:
gitlab-changesets-log.txt
gitlab-changesets-log-2.txt

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

Successfully merging a pull request may close this issue.

2 participants