Skip to content

Add PR feed exception for well-known dependency authors - #903

Merged
Arlodotexe merged 3 commits into
mainfrom
fix/pr-feed-fork-check
Nov 30, 2026
Merged

Arlodotexe merged 3 commits into
mainfrom
fix/pr-feed-fork-check

Conversation

@Arlodotexe

@Arlodotexe Arlodotexe commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

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'. The pull_request payload reference shows owner exposes login, not username.

On Discord I mentioned "I verified but stopped at making sure owner exists and assumed username did", so the property never resolved and the gate still misbehaved.

This is the one-word fix: owner.username → owner.login.

Docs:

@Arlodotexe Arlodotexe changed the title Follow-up to #897 — fixes the "if not fork" gate on the PR package push step. Add PR feed exception for well-known dependency authors Nov 30, 2026
@Arlodotexe
Arlodotexe enabled auto-merge (rebase) November 30, 2026 01:39
@Arlodotexe
Arlodotexe merged commit 56f528a into main Nov 30, 2026
22 checks passed
# 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]' }}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Wait. We hard coded a username into our build workflow? That's pretty bad code smell if you ask me...

@Sergio0694
Sergio0694 deleted the fix/pr-feed-fork-check branch November 30, 2026 03:43
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