Skip to content

Commit 750f044

Browse files
authored
Merge pull request #418 from sapcc/misspell-private-repos
Give out permissions for misspell in private repos
2 parents c415746 + 2e08a29 commit 750f044

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/checks.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ name: Checks
1818
permissions:
1919
checks: write
2020
contents: read
21+
pull-requests: read
2122
jobs:
2223
checks:
2324
name: Checks

internal/ghworkflow/workflow_checks.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ func checksWorkflow(cfg core.Configuration) {
6161
with["ignore"] = fmt.Sprintf("%s,%s", with["ignore"], strings.Join(ignoreWords, ","))
6262
}
6363

64-
w.Permissions.Checks = tokenScopeWrite // for nicer output in pull request diffs
64+
w.Permissions.Checks = tokenScopeWrite // for nicer output in pull request diffs
65+
w.Permissions.PullRequests = tokenScopeRead // for private repos
6566
j.addStep(jobStep{
6667
Name: "Check for spelling errors",
6768
Uses: core.MisspellAction,

0 commit comments

Comments
 (0)