Skip to content

Commit 3fc4f64

Browse files
committed
block public read access
1 parent 20597e1 commit 3fc4f64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

models/perm/access/repo_permission.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,8 @@ func GetActionsUserRepoPermission(ctx context.Context, repo *repo_model.Reposito
264264
return perm, err
265265
}
266266
if task.RepoID != repo.ID {
267-
// Allow public repo read access
268-
return GetUserRepoPermission(ctx, repo, actionsUser)
267+
// FIXME allow public repo read access if tokenless pull is enabled
268+
return perm, nil
269269
}
270270

271271
var accessMode perm_model.AccessMode

0 commit comments

Comments
 (0)