Skip to content

ci: add goreleaser release pipeline and analyze.sh installer - #2

Merged
blimmer merged 1 commit into
mainfrom
release-pipeline
May 24, 2026
Merged

ci: add goreleaser release pipeline and analyze.sh installer#2
blimmer merged 1 commit into
mainfrom
release-pipeline

Conversation

@blimmer

@blimmer blimmer commented May 24, 2026

Copy link
Copy Markdown
Contributor

Adds the release pipeline for patchwave-analysis, modeled on planbridge/patchwave.

What's here

  • goreleaser (.goreleaser.yaml): bun --compile for darwin arm64/x64 + linux x64, macOS signing/notarization (gated on the AWS-provided MACOS_SIGN_P12), version-less archive names, and ships analyze.sh as a release asset. Uses dist: dist-release so it doesn't collide with the dist/report-web/ asset the before-hook builds.
  • release-please (release-please-config.json + manifest + release-please.yml): release-type: node, so the package.json bump flows into the compiled binary's version. Uses the CB PR-automation app token so the release tag triggers release.yml.
  • release.yml: tag-triggered → test → goreleaser, assuming the AWS release role via OIDC (fetch-release-secrets reads the signing secrets from SSM/Secrets Manager).
  • scripts/analyze.sh (+ test): one-off runner — downloads the platform binary from the latest release, checksum-verifies, runs it, and discards it. Reconnects /dev/tty so the interactive prompts work over curl | bash.
  • zizmor.yml + lint-pr-title.yml: workflow security audit + conventional-commit PR titles.
  • README "Run it" now leads with bash -c "$(curl -fsSL https://patchwave.ai/analyze.sh)".

Notes

  • patchwave.ai/analyze.sh 404s until the first release exists (the redirect targets releases/latest/download/analyze.sh). The redirect itself lives in a companion change on contextbridge/patchwave.
  • The README "Options" section still documents the current flag-based CLI; it'll reconcile when the interactive CLI lands.

goreleaser (bun --compile for darwin arm64/x64 + linux x64, macOS notarization, version-less archives) + release-please (node) + tag-triggered release.yml assuming the AWS release role via OIDC. Adds scripts/analyze.sh one-off runner (shipped as a release asset), zizmor + conventional-commit PR-title checks, and a README run-it rewrite.
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@blimmer
blimmer marked this pull request as ready for review May 24, 2026 16:52
@blimmer
blimmer merged commit f616016 into main May 24, 2026
8 checks passed
@blimmer
blimmer deleted the release-pipeline branch May 24, 2026 16:53
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