Skip to content

Conversation

@j2fw
Copy link
Contributor

@j2fw j2fw commented Nov 3, 2025

Description:

With this change, github actions triggers a separate workflow run that has the right permissions to check for approvals. This fixes an issue where pull request review events on PRs from forks didn't have the right credentials.

It's a little more complicated and takes a little longer, but this gets around the github actions design, as well as a bug in github actions with how the base and head repos are reported in the pull_request_review event.

Checklist:

  • Tests passing (make test-community)?
  • Lint passing (make lint this requires golangci-lint)?

@j2fw j2fw marked this pull request as ready for review November 3, 2025 23:26
@j2fw j2fw requested a review from a team as a code owner November 3, 2025 23:26
Copy link
Contributor

@mcastorina mcastorina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to have some doc comments about how (and why) this works the way it does.

@j2fw j2fw merged commit cff9dd2 into main Nov 3, 2025
14 of 16 checks passed
@j2fw j2fw deleted the jw/fix-review-approval-workflow branch November 3, 2025 23:30
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.

3 participants