mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-02 13:00:10 +02:00
Review comment fixes
This commit is contained in:
1 parent
50f300b421
commit
9bd8b8109d
6 files changed
+4
-75
No files matched your search
@@ -241,12 +241,9 @@ func TestActionsTokenPermissionsClamping(t *testing.T) {
|
||||
RepoID: repository.ID,
|
||||
Type: unit_model.TypeActions,
|
||||
Config: &repo_model.ActionsConfig{
|
||||
TokenPermissionMode: repo_model.ActionsTokenPermissionModeCustom,
|
||||
DefaultTokenPermissions: &repo_model.ActionsTokenPermissions{
|
||||
Contents: perm.AccessModeWrite, // Default is Write
|
||||
},
|
||||
TokenPermissionMode: repo_model.ActionsTokenPermissionModePermissive,
|
||||
MaxTokenPermissions: &repo_model.ActionsTokenPermissions{
|
||||
Contents: perm.AccessModeRead, // Max is Read
|
||||
Contents: perm.AccessModeRead, // Max is Read - will clamp default Write to Read
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user