Repository navigation
ci: add release-please tagging for reusable workflow consumers - #80
Conversation
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.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe change adds Release Please configuration with a root version of 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. Comment |
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@maindirectly. Neither is great:github-actionsecosystem has no version signal to key off, and the SHA just goes stale until someone notices (as happened in fix: default sdk-ref to main in sync-sdk-compliance workflow #79).@mainfloats. Per the security team's stance in fix: default sdk-ref to main in sync-sdk-compliance workflow #79's discussion, that's not acceptable here even though this is an org-owned repo — every consumer would pick up a change the moment it lands onmain, without going through that consumer's own review.This PR: adds release-please, mirroring the setup already used in
supabase-swiftand 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:
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):
v1.0.0, updateuses:lines insupabase-js,supabase-swift,supabase-flutter(and any other consumers) to pin to that tag's SHA, including the@mainreferences in each repo'svalidate-capabilities.yml— those weren't part of fix: default sdk-ref to main in sync-sdk-compliance workflow #79 but have the same problem.