Skip to content

Commit 84f84bd

Browse files
Lasse Benningaclaude
andcommitted
fix(ci): grant contents: read so the grade workflow loads
The reusable workflow at HackYourFuture/github-actions/.github/workflows/auto-grade.yml@main contains a nested job that requests 'contents: read' (to checkout the PR code). The caller job here only granted issues + pull-requests, which caps every other permission at 'none'. Result: every PR fails to load the grade workflow with The nested job 'test' is requesting 'contents: read', but is only allowed 'contents: none'. Adding 'contents: read' to the caller's permissions block unblocks the nested checkout step. No other behaviour changes. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 8830bc7 commit 84f84bd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/grade-assignment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
jobs:
99
grade:
1010
permissions:
11+
contents: read
1112
issues: write
1213
pull-requests: write
1314
uses: HackYourFuture/github-actions/.github/workflows/auto-grade.yml@main

0 commit comments

Comments
 (0)