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

Add a token to CI runs similar to GITHUB_TOKEN #20394

Closed
dorianim opened this issue Jul 17, 2022 · 3 comments
Closed

Add a token to CI runs similar to GITHUB_TOKEN #20394

dorianim opened this issue Jul 17, 2022 · 3 comments
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@dorianim
Copy link

dorianim commented Jul 17, 2022

Feature Description

It would be great if Gitea would add a token to CI runs, similar to GITHUB_TOKEN. Currently, I have to generate a personal access token to push docker containers to the integrated container registry. This is a problem for organizations, as the token belongs to one member.
If that is not possible because of the way Gitea integrates with different CI-providers, it would be nice, if it was possible to create an organization wide access token.

@dorianim dorianim added type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first. labels Jul 17, 2022
@6543
Copy link
Member

6543 commented Jul 17, 2022

tldr: this is not posible because of the architecture gitea integrates with ci providers

long:
If you find a CI that is willing to integrate a function to inject a token, for the repo it got the request to run the pipeline, into the ci environment - you could have souch feature ...
... I would create a "bot" account that does handle things and reuse it acordingly ..

@dorianim
Copy link
Author

dorianim commented Jul 17, 2022

this is not posible because of the architecture gitea integrates with ci providers

Alright, that makes sense.

this is not posible because of the architecture gitea integrates with ci providers

I feel like this is quite a hustle for such a small thing. Wouldn't it be possible to just create an access token which only works for a certain organization?

@6543
Copy link
Member

6543 commented Jul 17, 2022

well yes with a dedicated account ... - limiting the scope of tokens is already a open feature request

@6543 6543 closed this as completed Jul 17, 2022
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests

2 participants