Add actions support to package auth verification#23729
Conversation
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
|
I found that we already have a func called |
This comment was marked as outdated.
This comment was marked as outdated.
KN4CK3R
left a comment
There was a problem hiding this comment.
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:  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:  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 <576951401@qq.com>
* 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.