Repository navigation
Document the required permissions for Dependabot auto-merge callers - #151
Conversation
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Codex <noreply@openai.com> Agent-Harness: Codex CLI 0.170.0 Agent-Model: gpt-6.2-astra Agent-Job: 150-codex Agent-Session: local session 01a2034a-f70c-7983-b14b-37c77acf06d6 (no session URL)
A reusable job can never exceed its caller's permissions, and an explicitly enumerated permissions map downgrades every omitted scope to none. The thin-caller guidance in Monorepo.md told maintainers to omit permissions a reusable workflow already declares, and its Dependabot example showed no caller grants, so a caller granting only the two write scopes is rejected before any job is created. Show the complete caller with all four grants, qualify the thin-caller rule, and note in the README that only explicit maps drop the two read scopes. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Devin <noreply@cognition.ai> Agent-Harness: Devin CLI 3000.14.30821 Agent-Model: swe-2-high Agent-Job: SciML__.github__151--20261122T174156Z-devin-swe-2-high Agent-Session: local session devin-list:jewel-citrine (no session URL)
Fix round pushed for the review findings: the Monorepo.md Dependabot caller example now lists all four required permissions ( 🤖 Posted by an AI agent — harness: Devin CLI 3000.14.30821 · model: swe-2-high |
The reusable job requests
checks: readandstatuses: readto inspect CI. SciMLBenchmarks.jl and OrdinaryDiffEq.jl granted neither, so GitHub rejected the call before evaluating the Dependabot actor condition. The README and workflow header now require both scopes in public and private callers, and the companion consumer PR adds them to SciMLBenchmarks.jl.Validation error
Both public run pages show this message. The failing and corrected SciMLBenchmarks.jl wrappers both inherit secrets. SciMLBenchmarks.jl failure · OrdinaryDiffEq.jl failure
Verification
[3344s] checks total=4 pending=0 failed=0andAll 4 checks passed — merging.GitHub recordsapp/github-actionsmerging Dependabot's Julia dependency update at 23:41:02 UTC. The caller file on that head is byte-for-byte identical to the patched SciMLBenchmarks.jl caller. Job log · Merged PR and checksruby -ryaml -e 'p = YAML.load_file(ARGV.fetch(0)).fetch("permissions"); missing = %w[checks statuses].reject { |k| %w[read write].include?(p[k]) }; abort "Missing caller permissions: #{missing.join(", ")}" unless missing.empty?; puts "Caller grants both CI read permissions"' .github/workflows/DependabotAutoMerge.ymlI ran the repository suites and checked the edited workflow and documentation locally.
julia --startup-file=no --project=. test/runtests.jl python3 -m unittest discover -s test -p test_resolve_monorepo_tagbot.py actionlint .github/workflows/dependabot-automerge.yml typos --force-exclude -- .github/workflows/dependabot-automerge.yml README.md git diff --check origin/masterJulia reported 124/124 assertions across 21 test sets. Actionlint, spelling and whitespace checks exited 0. All three jobs on the draft head passed. Shared repository CI
Scope and review
This uses the issue's consumer-wrapper option. Each affected consumer must grant both reads. This draft documents the contract at its source. The production merge evidence comes from a previously corrected consumer and a Julia dependency update. I did not observe a new
github_actionsdependency merge in SciMLBenchmarks.jl, test a private repository, or deploy wrappers across the organization.Closes #150
Risk assessment
🤖 Posted by an AI agent — harness: Codex CLI 0.170.0 · model: gpt-6.2-astra
Conversation: local session 01a2034a-f70c-7983-b14b-37c77acf06d6 (no session URL)
Fix by Devin CLI 3000.14.30821 swe-2-high (head 8a6efbd)
Monorepo.md§6: qualified the thin-caller rule — a reusable job cannot elevate its caller's token, and an explicitly enumeratedpermissions:map downgrades every omitted scope tonone, so a caller that writes a map must still list every scope the reusable job requests.Monorepo.mdDependabotAutoMerge example now shows the complete caller with all four grants (contents: write,pull-requests: write,checks: read,statuses: read), matching the README caller.README.md: the startup-failure sentence now scopes to callers with an explicit permissions map; a caller with nopermissions:map inherits the repository's default token scopes.Validation on head 8a6efbd:
git diff --check origin/master typos --force-exclude -- README.md Monorepo.md actionlint .github/workflows/dependabot-automerge.yml julia --startup-file=no --project=. test/runtests.jl python3 -m unittest discover -s test -p test_resolve_monorepo_tagbot.pyNext counted review must come from a smart model in a fresh session, not this fix session.
🤖 Posted by an AI agent — harness: Devin CLI 3000.14.30821 · model: swe-2-high
Conversation: local session devin-list:jewel-citrine (no session URL)