Skip to content

Commit e00dee2

Browse files
committed
remove redundant types from map literal
1 parent b624603 commit e00dee2

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

rule_permissions.go

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@ import (
55
)
66

77
var allPermissionScopes = map[string][]string{
8-
"actions": []string{"read", "write", "none"},
9-
"attestations": []string{"read", "write", "none"},
10-
"checks": []string{"read", "write", "none"},
11-
"contents": []string{"read", "write", "none"},
12-
"deployments": []string{"read", "write", "none"},
13-
"discussions": []string{"read", "write", "none"},
14-
"id-token": []string{"write", "none"},
15-
"issues": []string{"read", "write", "none"},
16-
"models": []string{"read", "none"},
17-
"packages": []string{"read", "write", "none"},
18-
"pages": []string{"read", "write", "none"},
19-
"pull-requests": []string{"read", "write", "none"},
20-
"repository-projects": []string{"read", "write", "none"},
21-
"security-events": []string{"read", "write", "none"},
22-
"statuses": []string{"read", "write", "none"},
8+
"actions": {"read", "write", "none"},
9+
"attestations": {"read", "write", "none"},
10+
"checks": {"read", "write", "none"},
11+
"contents": {"read", "write", "none"},
12+
"deployments": {"read", "write", "none"},
13+
"discussions": {"read", "write", "none"},
14+
"id-token": {"write", "none"},
15+
"issues": {"read", "write", "none"},
16+
"models": {"read", "none"},
17+
"packages": {"read", "write", "none"},
18+
"pages": {"read", "write", "none"},
19+
"pull-requests": {"read", "write", "none"},
20+
"repository-projects": {"read", "write", "none"},
21+
"security-events": {"read", "write", "none"},
22+
"statuses": {"read", "write", "none"},
2323
}
2424

2525
// RulePermissions is a rule checker to check permission configurations in a workflow.

0 commit comments

Comments
 (0)