Skip to content

fix(ci): Renovate auto-merge workflow permissions#142

Closed
samaluk wants to merge 1 commit into
mainfrom
fix/renovate-auto-merge-permissions
Closed

fix(ci): Renovate auto-merge workflow permissions#142
samaluk wants to merge 1 commit into
mainfrom
fix/renovate-auto-merge-permissions

Conversation

@samaluk
Copy link
Copy Markdown
Owner

@samaluk samaluk commented Jun 1, 2026

Summary

  • Switch Renovate auto-merge workflow from pull_request_target to pull_request so permission updates apply from the PR branch
  • Grant contents: write so enablePullRequestAutoMerge is allowed for the integration token

Context

PR #141 CI fails on enablePullRequestAutoMerge with "Resource not accessible by integration". The workflow on main only has contents: read, and pull_request_target always runs the workflow definition from the base branch.

Merge this before (or alongside) the Renovate dependency PR so auto-merge can be enabled.

Test plan

Use pull_request so workflow changes can ship via PR, and grant contents: write
for the enablePullRequestAutoMerge API.
@samaluk samaluk force-pushed the fix/renovate-auto-merge-permissions branch from ecb8809 to 9cdd38b Compare June 1, 2026 16:55
@samaluk
Copy link
Copy Markdown
Owner Author

samaluk commented Jun 1, 2026

Superseded by #141, which already merged the same workflow changes to main.

@samaluk samaluk closed this Jun 1, 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.

1 participant