Repository navigation
Add PR feed exception for well-known dependency authors - #903
Merged
Merged
Conversation
Arlodotexe
enabled auto-merge (rebase)
November 30, 2026 01:39
Sergio0694
approved these changes
Nov 30, 2026
Avid29
reviewed
Nov 30, 2026
| # exceptions for well-known and trusted contributors who own our dependencies | ||
| - name: Push Pull Request Packages (if not fork) | ||
| if: ${{ env.IS_PR == 'true' && (github.event.pull_request.head.repo.full_name == github.repository || github.event.pull_request.head.repo.owner.username == 'MartinZikmund') && github.actor != 'dependabot[bot]' }} | ||
| if: ${{ env.IS_PR == 'true' && (github.event.pull_request.head.repo.full_name == github.repository || github.event.pull_request.head.repo.owner.login == 'MartinZikmund') && github.actor != 'dependabot[bot]' }} |
Member
There was a problem hiding this comment.
Wait. We hard coded a username into our build workflow? That's pretty bad code smell if you ask me...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Second follow-up to #897 — fixes the "if not fork" gate on the PR package push step.
The first follow-up (#902) switched the gate to
github.event.pull_request.head.repo.owner.username == 'MartinZikmund'. Thepull_requestpayload reference showsownerexposeslogin, notusername.On Discord I mentioned "I verified but stopped at making sure
ownerexists and assumedusernamedid", so the property never resolved and the gate still misbehaved.This is the one-word fix:
owner.username→owner.login.Docs:
github.repository_owner(base repo owner): https://docs.github.com/en/actions/reference/workflows-and-actions/contextspull_requestpayload (head.repo.owner→login): https://docs.github.com/en/webhooks/webhook-events-and-payloads#pull_request