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

docs(gitlab): add note about group access token rotation #29136

Merged
merged 7 commits into from
Jun 8, 2024

Conversation

mschoettle
Copy link
Contributor

@mschoettle mschoettle commented May 17, 2024

Changes

This PR adds a note about rotating the group access token to keep the same bot user.

Also updated the required scopes (api allows one to read_user, and autodiscover uses the API so read_api is sufficient).

Context

See the discussion in #28736 (comment)

Closes #21121

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

lib/modules/platform/gitlab/readme.md Outdated Show resolved Hide resolved
lib/modules/platform/gitlab/readme.md Outdated Show resolved Hide resolved
lib/modules/platform/gitlab/readme.md Show resolved Hide resolved
mschoettle and others added 3 commits May 21, 2024 16:36
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Copy link
Collaborator

@HonkingGoose HonkingGoose left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nearly there!

lib/modules/platform/gitlab/readme.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@HonkingGoose HonkingGoose left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm happy with the docs style and sentences now. 🥳

I'll let a maintainer review the links to GitLab, and our new instructions for technical accuracy.

@rarkins rarkins enabled auto-merge June 8, 2024 06:55
@rarkins rarkins added this pull request to the merge queue Jun 8, 2024
Merged via the queue into renovatebot:main with commit 6749322 Jun 8, 2024
35 checks passed
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 37.399.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

- `read_api`
- `read_repository`
- `write_repository` (when using autodiscover)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this is removed? autodiscover will check for write access and filter repo without this permission!

min_access_level: 30,

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested autodiscover with read_api and read_repository and it was able to discover repositories.

min_access_level = 30 refers to the Developer role (https://docs.gitlab.com/ee/api/members.html#roles) which is the minimum requirement for the bot account.

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 this pull request may close these issues.

Document GitLab Group Access Token usage
6 participants