Skip to content

Default push and archive to skip on forked repositories - #296

Merged
emcfarlane merged 1 commit into
mainfrom
ed/forkGuard
Aug 20, 2026
Merged

Default push and archive to skip on forked repositories#296
emcfarlane merged 1 commit into
mainfrom
ed/forkGuard

Conversation

@emcfarlane

@emcfarlane emcfarlane commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

This updates the push and archive steps to default to skip forked repositories. It is part of the description of the field, but was never implemented. Forks have no BSR token so would by default fail to push or archive against the remote.

Related to bufbuild/protovalidate#524

The push and archive input descriptions have claimed "for non forked
repositories" since the pr_comment fork guard was added, but their
defaults never included the check. Forks have no BSR token, so the
recommended unscoped "on: push:" workflow fails whenever a contributor
pushes a branch to their fork.

The module name is resolved from the checked-out buf.yaml, so a fork
that does have a token would push labels to, or archive labels on, the
upstream module.
@emcfarlane
emcfarlane requested a review from doriable August 18, 2026 17:16
@github-actions

This comment has been minimized.

@emcfarlane
emcfarlane requested a review from pkwarren August 19, 2026 22:11
@emcfarlane
emcfarlane merged commit d7b686c into main Aug 20, 2026
45 checks passed
@emcfarlane
emcfarlane deleted the ed/forkGuard branch August 20, 2026 13:40
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.

2 participants