Skip to content

Sync from HackYourAssignment/c55-data-week-5 (Grade workflow fix)#1

Merged
halyna1995 merged 8 commits into
halyna1995:mainfrom
HackYourAssignment:main
Jun 2, 2026
Merged

Sync from HackYourAssignment/c55-data-week-5 (Grade workflow fix)#1
halyna1995 merged 8 commits into
halyna1995:mainfrom
HackYourAssignment:main

Conversation

@lassebenni

Copy link
Copy Markdown

Sync from cohort scaffold (one-click fix for CI)

The cohort scaffold just shipped a fix for the Grade Assignment workflow (HackYourAssignment/c55-data-week-5#4). Without it your CI fails to load with:

The nested job test is requesting contents: read, but is only allowed contents: none.

This PR brings cohort main into your fork so the fix lands in your repo too.

Safe to merge — it does not touch any assignment code, only sync fixes and the one-line contents: read grant in .github/workflows/grade-assignment.yml.

If you prefer, the equivalent is to click Sync fork on your fork home page (top right).

🤖 Generated with Claude Code

Lasse Benninga and others added 8 commits June 1, 2026 20:41
Bring the c55 cohort assignment scaffold in sync with upstream main:

- Renumber tasks to match the 8-task chapter (adds "Task 3: Write Tests";
  shifts subsequent task numbers by 1 across Dockerfile, ci.yml, pipeline.py,
  AI_ASSIST.md, .hyf/test.sh, and README).
- Update README to scope `az login` to the HYF tenant and link the Notion
  assignment page instead of the dead GH Pages URL.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
sync: pull upstream changes from HackYourFuture/data-assignment-week-5
Add a brief Task 7 callout above the tasks table so students know where
the AZURE_CREDENTIALS JSON will come from (cohort-wide secret, distributed
by the teacher over Slack DM).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…ntials-note

docs(readme): note that AZURE_CREDENTIALS is DM'd over Slack
Convert the pre-existing 'These task numbers match...' blockquote into
regular prose so the new 'Task 7 credentials' 💡 callout no longer
stacks against another quote block. Drop the 'before the assignment is
due' clause: the next sentence already establishes the right trigger
('if you have not received it by the time you reach Task 7').
fix(review): de-stack blockquotes + drop vague timing in Task 7 callout
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>
…issions

fix(ci): grant contents: read so the grade workflow loads
@halyna1995 halyna1995 merged commit 4c836d4 into halyna1995:main Jun 2, 2026
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.

2 participants