Skip to content

ci: add release-please tagging for reusable workflow consumers - #80

Merged
grdsdev merged 1 commit into
mainfrom
ci/add-release-tagging
Aug 10, 2026
Merged

grdsdev merged 1 commit into
mainfrom
ci/add-release-tagging

Conversation

@grdsdev

@grdsdev grdsdev commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to the discussion on #79.

Consumers currently pin uses: references to this repo's reusable workflows (sync-sdk-compliance.yml, validate-sdk-compliance-*.yml) either to a raw commit SHA or, in several places, to @main directly. Neither is great:

This PR: adds release-please, mirroring the setup already used in supabase-swift and other SDK repos (release-type: simple, same GitHub-App-token pattern for opening the release PR). Commit history here already follows Conventional Commits, so no history rewrite is needed — the first release PR will pick up whatever merges after this lands.

Once this is in place, consumers can pin like:

uses: supabase/sdk/.github/workflows/validate-sdk-compliance-swift.yml@<sha> # v1.2.3

and Dependabot bumps that pin automatically as new tags land — no more hand-maintained SHAs, no floating main.

Not done in this PR (one-way / repo-admin actions, listed for whoever merges this):

  1. Enable Immutable actions in repo settings, so published release tags can't be retargeted after the fact — this is what actually gives a tag the same integrity guarantee as a raw SHA (per the GitHub docs linked in fix: default sdk-ref to main in sync-sdk-compliance workflow #79).
  2. Once the first release-please PR merges and tags v1.0.0, update uses: lines in supabase-js, supabase-swift, supabase-flutter (and any other consumers) to pin to that tag's SHA, including the @main references in each repo's validate-capabilities.yml — those weren't part of fix: default sdk-ref to main in sync-sdk-compliance workflow #79 but have the same problem.

Adds semver release tags (v1.0.0+) via release-please, mirroring the
setup already used in supabase-swift and other SDK repos. Commit
history here already follows Conventional Commits, so this needs no
history rewrite — release-please will compute the first release from
whatever's merged after this lands.

This exists to let SDK repos pin their `uses:` references to this
repo's reusable workflows (sync-sdk-compliance.yml,
validate-sdk-compliance-*.yml) by a tagged commit SHA instead of a
raw SHA or `@main`. Discussed in #79: pinning to `main` (even though
this repo is internal) doesn't meet the org's security bar of pinning
all checkouts, and there was previously no tag to pin to instead.
Once Dependabot's github-actions ecosystem has tags to key off of, it
can bump consumers' pins automatically, so freshness doesn't require
anyone hand-maintaining a SHA.

Remaining manual steps once this merges (not done here, since they're
one-way/repo-admin actions):
1. Enable "Immutable actions" in repo settings, so published release
   tags can't be retargeted after the fact.
2. Once the first release-please PR merges and tags v1.0.0, update
   consumer repos' `uses:` lines (supabase-js, supabase-swift,
   supabase-flutter, ...) to pin to that tag's SHA.
@coderabbitai

coderabbitai Bot commented Aug 10, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 537a7a5b-c208-4c65-89a2-4b13a25d1323

📥 Commits

Reviewing files that changed from the base of the PR and between c73e9fa and 9d88716.

📒 Files selected for processing (4)
  • .github/workflows/release.yml
  • .release-please-manifest.json
  • README.md
  • release-please-config.json

📝 Walkthrough

Summary by CodeRabbit

  • New Features

    • Added automated release creation after successful validation workflows or through manual runs.
    • Configured the project for versioned releases starting at 1.0.0.
  • Documentation

    • Added guidance for securely pinning reusable workflow references to release commit SHAs.
    • Documented version comments, Dependabot updates, and avoiding floating branch references.

Walkthrough

The change adds Release Please configuration with a root version of 1.0.0. A GitHub Actions workflow runs after successful validation on main or through manual dispatch. It restricts automated runs to successful same-repository pushes, creates a GitHub App token, and invokes the pinned Release Please action for the selected branch. The README documents commit-SHA pinning for reusable workflow references.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@spydon spydon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@grdsdev
grdsdev merged commit 58d92ed into main Aug 10, 2026
2 checks passed
@grdsdev
grdsdev deleted the ci/add-release-tagging branch August 10, 2026 12:15
@coderabbitai coderabbitai Bot mentioned this pull request Aug 12, 2026
3 tasks
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