Skip to content

Commit 3b13ba6

Browse files
committed
Add checks: write permission to standardrb workflow
Dependabot PRs run with a restricted GITHUB_TOKEN that lacks checks:write by default, causing the standard-ruby-action to fail with a 403 when it tries to create a Check Run. Explicitly granting checks: write (and contents: read for checkout) fixes this.
1 parent 7f7c049 commit 3b13ba6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/standardrb.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on: [push]
55
jobs:
66
build:
77
runs-on: ubuntu-latest
8+
permissions:
9+
checks: write
10+
contents: read
811
steps:
912
- uses: actions/checkout@v1
1013
- name: StandardRB Linter

0 commit comments

Comments
 (0)