-
Notifications
You must be signed in to change notification settings - Fork 0
ci(actions): bump supabase/setup-cli from 1 to 2 #144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
adm01-debug
merged 1 commit into
main
from
dependabot/github_actions/supabase/setup-cli-2
May 12, 2026
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: adm01-debug/Promo_Gifts
Length of output: 512
🌐 Web query:
GitHub Actions pinning version SHA security best practices💡 Result:
Best practice: Pin GitHub Actions to a full-length (40-character) commit SHA in every
uses:reference, and (where possible) enforce this via the GitHub “allowed actions” policy so workflows fail if an action isn’t pinned. 1) Why pin to commit SHA (not tags/branches) - GitHub security hardening guidance recommends pinning actions to a full-length commit SHA because it makes the action behave like an immutable release; this helps mitigate the risk of a bad actor adding a backdoor to an action repository by changing what a mutable ref points to. [1] - Pinning a short SHA is explicitly insecure; GitHub warns that short SHAs can collide because users can fork and craft commits, and workflows using shortened SHAs will fail. [2] 2) What GitHub expects your workflow to look like - Example pattern from GitHub action versioning guidance: use the long SHA form rather than@vX.Y.Zor@main. [3] - GitHub policy enforcement checks for a “full commit SHA”; if an action isn’t pinned, the workflow fails. [4] 3) How to operationalize it (enforcement) - GitHub’s “allowed actions” policy can enforce SHA pinning. When enabled, workflows that attempt to use an action that isn’t pinned to a full commit SHA will fail. [4] - At the enterprise level, GitHub also documents an option “Require actions to be pinned to a full-length commit SHA” (including GitHub-authored actions). [5] 4) Managing updates without losing security - GitHub recommends pinning to SHAs to prevent malicious code from being automatically used when branches/tags are updated. [4] - Dependabot can be used to update vulnerable actions and can work with SHA-pinned actions; GitHub notes that Dependabot only creates alerts for vulnerable actions that use semantic versioning and will not create alerts for actions pinned to SHA values. [1] - If you want automated updates for SHA pins specifically, you’ll typically use a dedicated workflow/tool approach (e.g., Dependabot/Renovate with support for SHA-pinned updates, or a “ensure SHA pinned actions” job) rather than relying on Dependabot vulnerability alerts alone. (Policy guidance around updating pinned actions is discussed in community-maintenance PRs and tooling, but the core official security recommendation is still the SHA pin + enforcement pattern.) [6][7] 5) Practical security hardening checklist (pinning is one part) - Alongside SHA pinning, GitHub’s security-hardening guidance also covers other controls (e.g., trusting tags only if you trust the creator; auditing action code; and governance via policies). [1] Example: SHA pinning in a workflow - Use: -uses: OWNER/REPO@<FULL_40_CHAR_SHA> # <optional human-readable version>- Avoid: -uses: OWNER/REPO@v4(mutable to minor/patch updates) -uses: OWNER/REPO@main/@latest(branches/tags can move) If you tell me which actions you currently use (theuses:lines from your workflows), I can help you convert them to full-SHA pins and suggest an enforcement configuration consistent with your org/repo setup.Citations:
🌐 Web query:
supabase setup-cli latest version stable release💡 Result:
Latest stable Supabase CLI release (as of 2026-05-11): v2.98.1 (published 2026-05-04). [1] Notes about “setup-cli” (GitHub Action) vs “Supabase CLI version”: - The GitHub Action
supabase/setup-cliis a separate project from the Supabase CLI itself; the action accepts aversioninput and installs that CLI version (orlatestif omitted). [2][3] - In the action’saction.yml, ifversionis omitted it “detect[s] from the root lockfile and otherwise use latest.” [3] How to pin the stable CLI in CI usingsupabase/setup-cli: - Use the stable CLI version explicitly: -uses: supabase/setup-cli@v2-with: { version: "2.98.1" }[2][3] - Or let the action install the defaultlatest(not necessarily “stable” if you later switch to a prerelease-aware workflow): -with: { version: "latest" }[2] Sources: [1] https://github.com/supabase/cli/releases [2] https://github.com/supabase/setup-cli/releases [3] https://github.com/supabase/setup-cli/blob/main/action.ymlCitations:
🏁 Script executed:
Repository: adm01-debug/Promo_Gifts
Length of output: 1085
Pin a action e versão explícita da CLI para evitar regressões não-determinísticas no CI.
Em linha 58 e linha 60:
@v2eversion: latestsão refs flutuantes. Isso causa risco de breaking changes silenciosas quando a tagv2aponta para um novo commit (sem seu controle) ou quando o binário CLI é atualizado.O workflow executa com
SUPABASE_ACCESS_TOKEN, logo uma regressão aqui pode deletar edge functions inesperadas. Use:Resolva o SHA completo (40 chars) da tag
v2no repositóriosupabase/setup-clivia GitHub UI ou CLI (gh api repos/supabase/setup-cli/commits/v2), e substitua2.98.1pela versão atual do CLI desejada. Isso garante reprodutibilidade entre execuções e bloqueia supply-chain drift.🤖 Prompt for AI Agents