Skip to content

fix(ci): grant contents:read so the grade workflow stops failing at startup#7

Closed
lassebenni wants to merge 1 commit into
mainfrom
fix/ci-grader-contents-read-permission
Closed

fix(ci): grant contents:read so the grade workflow stops failing at startup#7
lassebenni wants to merge 1 commit into
mainfrom
fix/ci-grader-contents-read-permission

Conversation

@lassebenni

Copy link
Copy Markdown

Problem

Every Grade Assignment run on this repo fails with startup_failure (0s, no jobs) — the autograder never runs.

Root cause: the grade job sets only issues: write + pull-requests: write. A permissions: block forces every unlisted scope to none, so this grants contents: none. The reusable HackYourFuture/github-actions/.github/workflows/auto-grade.yml@main requests contents: read (for actions/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: read to the grade job permissions (matches the working c55-data-week-6).

Note: this PR run still uses the base-branch (broken) workflow because pull_request_target evaluates from the base ref, so its own check still fails until merged. After merge, PRs grade correctly.

🤖 Generated with Claude Code

…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>
@lassebenni

Copy link
Copy Markdown
Author

Closing: the backend track is out of scope for this pass (data-track work only). The change here is just the valid contents: read CI one-liner, identical to the data-track fix, but it should be applied and merged by the backend-track owners rather than from this data-track sweep. No changes retained.

@lassebenni lassebenni closed this Jul 6, 2026
@lassebenni lassebenni deleted the fix/ci-grader-contents-read-permission branch July 6, 2026 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant