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

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
44 checks passed
@emcfarlane
emcfarlane deleted the ed/forkGuard branch August 20, 2026 13:40
@emcfarlane emcfarlane mentioned this pull request Sep 22, 2026
emcfarlane added a commit that referenced this pull request Sep 22, 2026
## What's Changed
* Update GHA examples by @pkwarren in
#286
* Default push and archive to skip on forked repositories by @emcfarlane
in #296
* Add workload identity federation support by @DMarby in
#297
* Add end-to-end tests for workload identity federation by @DMarby in
#298

## New Contributors
* @pkwarren made their first contribution in
#286
* @DMarby made their first contribution in
#297

**Full Changelog**:
v1.5.0...v1.6.0
github-actions Bot added a commit to step-security/buf-action that referenced this pull request Oct 22, 2026
## What's Changed
* Update GHA examples by @pkwarren in
bufbuild/buf-action#286
* Default push and archive to skip on forked repositories by @emcfarlane
in bufbuild/buf-action#296
* Add workload identity federation support by @DMarby in
bufbuild/buf-action#297
* Add end-to-end tests for workload identity federation by @DMarby in
bufbuild/buf-action#298

## New Contributors
* @pkwarren made their first contribution in
bufbuild/buf-action#286
* @DMarby made their first contribution in
bufbuild/buf-action#297

**Full Changelog**:
bufbuild/buf-action@v1.5.0...v1.6.0
github-actions Bot added a commit to step-security/buf-action that referenced this pull request Oct 22, 2026
## What's Changed
* Update GHA examples by @pkwarren in
bufbuild/buf-action#286
* Default push and archive to skip on forked repositories by @emcfarlane
in bufbuild/buf-action#296
* Add workload identity federation support by @DMarby in
bufbuild/buf-action#297
* Add end-to-end tests for workload identity federation by @DMarby in
bufbuild/buf-action#298

## New Contributors
* @pkwarren made their first contribution in
bufbuild/buf-action#286
* @DMarby made their first contribution in
bufbuild/buf-action#297

**Full Changelog**:
bufbuild/buf-action@v1.5.0...v1.6.0
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