Skip to content

Commit 527998d

Browse files
committed
fix repo
1 parent cbaa5ff commit 527998d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

routers/web/repo/githttp.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,8 @@ func httpBase(ctx *context.Context) *serviceHandler {
201201
}
202202
actionsCfg := repo.MustGetUnit(ctx, unit.TypeActions).ActionsConfig()
203203
if !actionsCfg.IsCollaborativeOwner(task.Repo.OwnerID) || !task.Repo.IsPrivate {
204-
// See https://docs.github.com/en/actions/sharing-automations/sharing-actions-and-workflows-from-your-private-repository
205-
// Any actions or reusable workflows stored in the private repository can be used in
206-
// workflows defined in other private repositories owned by the same organization or user.
207-
// Actions and reusable workflows stored in private repositories cannot be used in public repositories.
204+
// The task repo can access the current repo only if the task repo is private and
205+
// the owner of the task repo is a collaborative owner of the current repo.
208206
ctx.PlainText(http.StatusForbidden, "User permission denied")
209207
return nil
210208
}

0 commit comments

Comments
 (0)