-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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 actions support to package auth verification #23729
Conversation
Co-authored-by: wxiaoguang <[email protected]>
I found that we already have a func called |
This comment was marked as outdated.
This comment was marked as outdated.
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.
This will only work if you pull images from a public registry. And you can do that without auth. The action user will not pass permission checks.
That's also an unclear question in my mind, how the "action" user works with permissions (or how it should work). Is there any document? |
open questions I asked in Discord:
And after that we may need to change how we use |
|
gitea/routers/api/v1/org/org.go Lines 105 to 169 in 6706ac2
|
I agree. |
👍🏻I believe this is the optimal solution at the moment |
487bc6e
to
9520c12
Compare
Removed permission check in this PR, and added |
Please update the description of this PR. 😄 |
Done. Maybe it is better to create a summary (tasks) for this problem? It seems that the discussion is in many different issues/PRs comments. |
Partly fixes go-gitea#23642 Error info: ![image](https://user-images.githubusercontent.com/18380374/227827027-4280a368-ec9e-49e0-bb93-6b496ada7cd9.png) ActionsUser (userID -2) is used to login in to docker in action jobs. Due to we have no permission policy settings of ActionsUser now, ActionsUser can only access public registry by this quick fix.
Backport #23729 by @yp05327 Partly fixes #23642 Error info: ![image](https://user-images.githubusercontent.com/18380374/227827027-4280a368-ec9e-49e0-bb93-6b496ada7cd9.png) ActionsUser (userID -2) is used to login in to docker in action jobs. Due to we have no permission policy settings of ActionsUser now, ActionsUser can only access public registry by this quick fix. Co-authored-by: yp05327 <[email protected]>
* upstream/main: Avoid recursing into sub-sub-sub-docs folders when looking for READMEs. (go-gitea#23695) [skip ci] Updated translations via Crowdin Use auto-updating, natively hoverable, localized time elements (go-gitea#23988) Reserve ".png" suffix for user/org names (go-gitea#23992) Allow adding SSH keys even if SSH server is disabled (go-gitea#24025) Add placeholder and aria attributes to release and wiki edit page (go-gitea#24031) Add --quiet option to gitea dump (go-gitea#22969) Remove "inverted" class on creating new label and cancel buttons (go-gitea#24030) Use actions job link as commit status URL instead of run link (go-gitea#24023) Make label templates have consistent behavior and priority (go-gitea#23749) Add actions support to package auth verification (go-gitea#23729)
Partly fixes #23642
Error info:
ActionsUser (userID -2) is used to login in to docker in action jobs.
Due to we have no permission policy settings of ActionsUser now, ActionsUser can only access public registry by this quick fix.