Skip to content

Commit 115d2a5

Browse files
committed
Fix Dependabot 403 when publishing test results by adding explicit permissions
Dependabot PRs use a restricted GITHUB_TOKEN that lacks write access by default. Explicitly granting checks:write and pull-requests:write allows the publish-unit-test-result-action to create check runs on Dependabot PRs.
1 parent e1b8c2a commit 115d2a5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ jobs:
1111
tests:
1212
name: Test
1313
runs-on: ubuntu-latest
14+
permissions:
15+
checks: write
16+
pull-requests: write
17+
contents: read
1418
steps:
1519
- uses: actions/checkout@v4
1620

0 commit comments

Comments
 (0)