Skip to content

Fix on-merge workflow permissions for dependency tests#635

Merged
jhamon merged 1 commit intomainfrom
jhamon/fix-on-merge-permissions
Apr 7, 2026
Merged

Fix on-merge workflow permissions for dependency tests#635
jhamon merged 1 commit intomainfrom
jhamon/fix-on-merge-permissions

Conversation

@jhamon
Copy link
Copy Markdown
Collaborator

@jhamon jhamon commented Apr 7, 2026

Summary

  • PR Add explicit GITHUB_TOKEN permissions to workflow files #629 added permissions: {} to on-merge.yaml, which grants zero permissions to called workflows
  • testing-dependency.yaml and its sub-workflows (testing-dependency-rest, testing-dependency-asyncio, testing-dependency-grpc) all require contents: read
  • GitHub Actions enforces that called workflows cannot exceed the caller's permissions, so the entire run fails with startup_failure before any jobs execute
  • Fixes this by granting contents: read at the caller level — the minimum permission needed

Test plan

  • Verify the on-merge workflow passes on this branch after merge

Note

Low Risk
Low risk: this only adjusts GitHub Actions workflow permissions and should mainly affect whether CI can start successfully.

Overview
Fixes the on-merge.yaml caller workflow permissions so reusable workflows can run.

Replaces permissions: {} (no permissions) with the minimal required permissions: contents: read, preventing startup_failure when invoking downstream dependency test workflows.

Reviewed by Cursor Bugbot for commit 6dcd48b. Bugbot is set up for automated code reviews on this repo. Configure here.

PR #629 added `permissions: {}` to on-merge.yaml, which blocks called
workflows from requesting any permissions. The testing-dependency.yaml
workflow (and its sub-workflows) require `contents: read` to checkout
the repo, causing a startup_failure on every push to main.

Grant `contents: read` at the caller level so called workflows can
operate within that allowance.
@jhamon jhamon merged commit 02b03fc into main Apr 7, 2026
42 of 43 checks passed
@jhamon jhamon deleted the jhamon/fix-on-merge-permissions branch April 7, 2026 16:01
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