Skip to content

chore: bump ospo-reusable-workflows release.yaml to v1.0.1#35

Open
jmeridth wants to merge 3 commits into
mainfrom
chore/bump-ospo-reusable-workflows-to-v1.0.0
Open

chore: bump ospo-reusable-workflows release.yaml to v1.0.1#35
jmeridth wants to merge 3 commits into
mainfrom
chore/bump-ospo-reusable-workflows-to-v1.0.0

Conversation

@jmeridth
Copy link
Copy Markdown
Member

What

Pin the reusable release workflow to v1.0.0 (SHA 592067a69a43d2285f933753d89a7c9d51b96530), use the reusable workflow's built-in GoReleaser support, add release.disable to .goreleaser.yaml, and add a Breaking Changes category to release-drafter.

Why

v1.0.0 of ospo-reusable-workflows broadens the release trigger to include breaking, feature, vuln, and release labels and folds GoReleaser, container image build, attestation, and discussion creation into the reusable workflow itself. Centralizing the GoReleaser step removes duplicated CI definition and keeps version pins on a single hardened source.

Notes

  • The reusable workflow validates that the GoReleaser config sets release.disable: true to prevent the goreleaser step from racing the draft release.
  • The outer label-filter if: block is removed because the v1.0 reusable workflow handles label filtering internally.
  • Trigger updated to pull_request_target so the workflow can push tags via GITHUB_TOKEN.
  • This is a templates repo with no real go.mod (only go.mod.tmpl), so go-version-file is omitted from the workflow with: inputs.
  • The separate goreleaser and attest-sboms jobs are removed; the reusable workflow now performs GoReleaser, build provenance attestation, and SBOM handling internally.

Testing

  • Workflow syntax validates on GitHub (no parse errors on push)
  • On next merged PR with a release-triggering label, the reusable workflow runs end-to-end and publishes a release with attestations
  • GoReleaser does not attempt to create its own release (verified via release.disable: true)

## What

Pin the reusable release workflow to v1.0.0 (SHA 592067a69a43d2285f933753d89a7c9d51b96530), use the reusable workflow's built-in GoReleaser support, add release.disable to .goreleaser.yaml, and add a Breaking Changes category to release-drafter.

## Why

v1.0.0 of ospo-reusable-workflows broadens the release trigger to include breaking, feature, vuln, and release labels and folds GoReleaser, container image build, attestation, and discussion creation into the reusable workflow itself. Centralizing the GoReleaser step removes duplicated CI definition and keeps version pins on a single hardened source.

## Notes

- The reusable workflow validates that the GoReleaser config sets `release.disable: true` to prevent the goreleaser step from racing the draft release.
- The outer label-filter `if:` block is removed because the v1.0 reusable workflow handles label filtering internally.
- Trigger updated to pull_request_target so the workflow can push tags via GITHUB_TOKEN.

Signed-off-by: jmeridth <jmeridth@gmail.com>
@jmeridth jmeridth self-assigned this May 11, 2026
@jmeridth jmeridth marked this pull request as ready for review May 11, 2026 00:09
jmeridth added 2 commits May 10, 2026 20:25
## What

Add packages and discussions permissions to the release job. v1.0 of ospo-reusable-workflows/release.yaml declares them on its internal release_image and release_discussion jobs, and GitHub validates them at workflow startup regardless of whether the if: filter would skip the job.

## Why

The initial v1.0 bump shipped a too-narrow permissions block. When pull_request_target.closed fires on merge, GitHub validates the called workflow's job permissions against the caller and rejects the run with startup_failure. Aligning the caller's release job permissions with the ospo/stale-repos reference fixes the validation.

## Notes

- All extra permissions are required by GitHub's static validation even when the matching reusable-workflow job is gated by if: and would not actually run.
- This is also a template-source repo; downstream-generated plugins will pick up the corrected workflow.

## Testing

After merging, the next merged PR will trigger a successful Release workflow startup (no more startup_failure).

Signed-off-by: jmeridth <jmeridth@gmail.com>
## What

Bump the pin on ospo-reusable-workflows/release.yaml from v1.0.0 to v1.0.1 (SHA e92cb6053ace495fe40a5f185988557afcdcecbc).

## Why

v1.0.1 lands two fixes from upstream PR #138:
1. release_discussion runs only after publish_release succeeds.
2. release_goreleaser auto-installs syft when GoReleaser config declares an sboms: block.

## Notes

- No caller-side configuration changes are required; v1.0.1 is backward-compatible with v1.0.0 inputs and secrets.
- This is a templates repo; downstream-generated plugins pick up the corrected version automatically.
- This commit folds into the existing PR; the cumulative PR now lands at v1.0.1.

Signed-off-by: jmeridth <jmeridth@gmail.com>
@jmeridth jmeridth changed the title chore: bump ospo-reusable-workflows release.yaml to v1.0.0 chore: bump ospo-reusable-workflows release.yaml to v1.0.1 May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant