fix(ci): grant contents:read so the grade workflow stops failing at startup#7
Closed
lassebenni wants to merge 1 commit into
Closed
fix(ci): grant contents:read so the grade workflow stops failing at startup#7lassebenni wants to merge 1 commit into
lassebenni wants to merge 1 commit into
Conversation
…tartup The grade job granted issues:write + pull-requests:write, which forces contents:none. Since 2026-05-03 the reusable auto-grade.yml requires contents:read (actions/checkout), so GitHub rejects it at load time (startup_failure, 0 jobs). Adding contents:read matches the working c55-data-week-6 caller. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Author
|
Closing: the backend track is out of scope for this pass (data-track work only). The change here is just the valid |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Every
Grade Assignmentrun on this repo fails withstartup_failure(0s, no jobs) — the autograder never runs.Root cause: the
gradejob sets onlyissues: write+pull-requests: write. Apermissions:block forces every unlisted scope tonone, so this grantscontents: none. The reusableHackYourFuture/github-actions/.github/workflows/auto-grade.yml@mainrequestscontents: read(foractions/checkout), added 2026-05-03. GitHub rejects a reusable workflow needing more permission than the caller grants, at load time →startup_failure.Fix: add
contents: readto thegradejob permissions (matches the workingc55-data-week-6).🤖 Generated with Claude Code