Repository navigation
Check that workflow callers grant the permissions their reusable workflows need - #206
dem-extra1 wants to merge 6 commits into
Conversation
…flows need Calls the gha check-caller-permissions workflow (v3). A caller job that omits a permission its callee's jobs request fails at startup with no log, as lds's preview cleanup did for a week (Morrison-Lab/lds#1468). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Dmqa3hWsgjovnGyT7qANYK
The check-caller-permissions guard found callers that omit a permission their callee's jobs request, which fails the call at startup. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Dmqa3hWsgjovnGyT7qANYK
|
Claude finished review — View run Both changes match the callee's needs. The new caller grants FindingsNo blocking findings. I saw nothing to flag for this PR's changes. The checks were:
Optional: the VerdictReady for merge Structured Review Data (JSON){
"schema_version": "1.1",
"reviewer": "claude",
"commit_sha": "e12a19f41d252a3d00d04112c3c06a59db2880eb",
"verdict": "CLEAN",
"findings": [],
"detailed_assessment": "The new check-caller-permissions.yml grants contents: read, matching the callee's single job permission, and claude-code-review.yml adds checks: read which the callee review job requires.",
"holistic_assessment": "The change is small and scoped to CI permissions and one new caller workflow, with no R code, docs, or NEWS impact and no regression risk identified."
}Reviewed commit: e12a19f |
Run against the refs these callers pin, the check reports no missing grant, so the added permissions were speculative. Granting more than a callee requests is harmless but unexplained, so they come out of this PR. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Dmqa3hWsgjovnGyT7qANYK
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Dmqa3hWsgjovnGyT7qANYK
🤖 Antigravity agent reportCross-harness review (Argon: Gemini 4 Argon (Medium) via Antigravity
|
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Dmqa3hWsgjovnGyT7qANYK
🤖 Antigravity agent reportCross-harness review (Argon: Gemini 4 Argon (Medium) via Antigravity
|
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Dmqa3hWsgjovnGyT7qANYK
|
🤖 Antigravity agent reportCross-harness review (Argon: Gemini 4 Argon (Medium) via Antigravity
|
Adds a caller for gha's
check-caller-permissionsworkflow (@v3). The workflow fails when a job calls aMorrison-Lab/ghareusable workflow without granting the permissions that the called workflow's jobs request. It runs on pull requests that change workflow files, on pushes tomain, and on manual dispatch. GitHub rejects such a call at startup with no log, as it did for lds's preview cleanup (Morrison-Lab/lds#1468).The
NEWS.mdentry covers the repository's changelog check.Correction: an earlier revision also added permission grants and said the check found them missing. That came from running the check against gha
main, not the refs this repository pins. At the pinned refs the check reports no missing grant, so those grants are removed.🤖 Generated with Claude Code
https://claude.ai/code/session_01Dmqa3hWsgjovnGyT7qANYK