-
-
Notifications
You must be signed in to change notification settings - Fork 371
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
Use IDs for tokens #3695
Use IDs for tokens #3695
Conversation
Why is it better to use IDs? What's the motivation for this change? |
Repos can be renamed and multiple users with the same username can exist when using multiple forges. |
I don't think so: https://github.com/woodpecker-ci/woodpecker/blob/main/server/api/hook.go#L191-L207 |
Deployment of preview was torn down |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
untested
We currently used user and repo names for tokens. Users will need to login again. Repo hooks don't need to be updated as we never actually check the tokens content, but just use the token as hash.