Repository navigation
Description
Bug report
- I confirm this is a bug with Supabase, not with my own application.
- I confirm I have searched the Docs, GitHub Discussions, and Discord.
Describe the bug
As far as I can tell, the setup-cli doesn't seem to work in GitHub Actions container jobs using Alpine-based images (musl libc) after the latest update. Tried it on both v1 and v2 with differing results.
v1: Seems like it downloads and extracts the CLI binary successfully, but fails the supabase --version check. The binary isn't found on PATH. I think this started happening with the recent CLI v2.100.1, which changed the archive to include both supabase and supabase-go.
/bin/tar xz -v -C /__w/_temp/2bdaa264-a942-428c-bb7e-9d85361cb64b -f /__w/_temp/cc6714c9-a32e-45cd-b629-ed541aee3319
supabase
supabase-go
Error: Command failed: supabase --version
/bin/sh: supabase: not found
Trying to set version: 2.100.0 seems to not work, the action still downloads v2.100.1.
On v2: It fails earlier because it tries to run a glibc Bun binary on musl Alpine:
Run supabase/setup-cli@v2
Run oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6
/usr/bin/docker exec 887f9f32e0060f390e67c2f100f0f887cccf50ef75e8e39cbaa8a78924ebffaf sh -c "cat /etc/*release | grep ^ID"
Obtained version 1.3.10 from /__w/_actions/supabase/setup-cli/v2/.bun-version
Downloading a new version of Bun: https://github.com/oven-sh/bun/releases/download/bun-v1.3.10/bun-linux-x64.zip
/usr/bin/unzip -o -q /__w/_temp/f056c2ef-b908-4825-9cc1-8670bd414107.zip
/github/home/.bun/bin/bun --revision
Error: Error: There was an error when attempting to execute the process '/github/home/.bun/bin/bun'. This may indicate the process failed to start. Error: spawn /github/home/.bun/bin/bun ENOENT
To Reproduce
Need a Github Action workflow that utilizes the setup-cli on the specific runners, e.g.
jobs:
example:
runs-on: ubuntu-latest
container:
image: node:20-alpine
steps:
- name: Install Supabase CLI
uses: supabase/setup-cli@v1 # or @v2, both fail
with:
version: latest
- run: supabase --version
This seems to work fine without the container: directive on a bare ubuntu-latest runner, on my other action workflows.
Expected behavior
The supabase CLI downloads and installs correctly without failing the workflow.
System information
Environment:
- Action: supabase/setup-cli@v1 and @v2
- CLI version resolved: v2.100.1
- Container: Alpine-based (ghcr.io/railwayapp/cli:latest, ID=alpine)
- Runner: ubuntu-latest
Additional context
This just started happening today, and my runners were fine last week, so I imagine it was the most recent update.
This is my understanding of the issue so far. Any clarifications would be greatly appreciated, thanks!
Activity
avallete commentedon May 20, 2026
Hi there ! Thank's for reporting. We're looking into this.
ci(cli): smoke setup-cli @v1 and @v2 side by side
jjao-sc commentedon May 20, 2026
Thank you!
jgoux commentedon May 20, 2026
Hey @jjao-sc, it should be fixed for both
v1andv2now!Please don't hesitate to open a new issue if you encounter any other problem!
jjao-sc commentedon May 20, 2026
Hi @jgoux, I just retried these on my workflows for both v1 and v2, and unfortunately they still seem to not be working. Do you know if this is still related, or if I perhaps need to be doing something else? Let me know if you need me to provide more info as well.
On v1:
On v2:
jgoux commentedon May 20, 2026
Hello @jjao-sc, I had successful runs with musl/alpine here.
I'm reopening and I'll continue investigating. 🫡
jjao-sc commentedon May 20, 2026
@jgoux Sorry for the hassle, and thank you for looking into it!
Let me know if it turns out it's more something on my end.
jgoux commentedon May 20, 2026
Ok so it seems like
bunneeds these dependencies in order to work which aren't installed by default on the base alpine image (but are in thenode-alpineI used in my tests)I'll add the detection for these missing deps and will trigger an install from within our GitHub Action.
jgoux commentedon May 20, 2026
Can you try both my branches for v1 and v2 with the potential fix?
For v1 :
For v2 :
jjao-sc commentedon May 20, 2026
@jgoux just tried running my workflows on both branches, and they both work, so I believe that should do it for my setup/problem!
Thank you very much for your help!
jgoux commentedon May 21, 2026
Both branches are published now, thanks again for the report @jjao-sc!