Files
supabase/.github/workflows/zizmor.yml
Alaister YoungandAlaister Young 6236fa4ec5 chore: remove the Cloudflare R2 asset upload and asset CDN (#53148)
Removes the dead Cloudflare R2 asset upload and asset CDN code from
Studio, docs and www. Every app now behaves as it did with
`FORCE_ASSET_CDN=-1`: Vercel serves assets from the default path.

Also fixes `.github/workflows/zizmor.yml` to download zizmor with `gh
release download`: `curl -sSLO` saved GitHub error pages as the archive,
which broke the attestation check.

> [!WARNING]
> Remove `FORCE_ASSET_CDN` from Vercel only after this deploys.

**Worth a close look**
- `apps/studio/vite.config.ts`: `SKIP_ASSET_UPLOAD` is kept because it
still gates Sentry source map upload.
- `apps/studio/turbo.jsonc`: `AWS_ACCESS_KEY_ID` /
`AWS_SECRET_ACCESS_KEY` are kept because the Bedrock credential chain
(`lib/ai/bedrock.ts`) can fall back to them.

## To test
- [ ] On the Vercel previews for studio, docs and www, open a page with
DevTools: JS, CSS and fonts load from the app's own origin
(`/dashboard/assets/…` or `/dashboard/_vercel/immutable/…` for Studio,
`/docs/_next/static/…` for docs, `/_next/static/…` for www), with no
404s or CSP errors in the console.

---------

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
2026-11-10 18:21:33 +09:00

59 lines
1.6 KiB
YAML

name: zizmor
on:
pull_request:
branches:
- 'master'
paths:
- '.github/workflows/**'
- 'zizmor.yml'
# Cancel old builds on new commit for same workflow + branch/PR
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
env:
ZIZMOR_VERSION: 1.26.1
jobs:
zizmor:
name: zizmor
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
sparse-checkout: |
.github/workflows
zizmor.yml
- name: Cache zizmor binary
id: cache-zizmor
uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
with:
path: ~/.local/bin/zizmor
key: zizmor-${{ runner.os }}-${{ runner.arch }}-${{ env.ZIZMOR_VERSION }}
- name: Download zizmor
if: steps.cache-zizmor.outputs.cache-hit != 'true'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -euo pipefail
archive="zizmor-x86_64-unknown-linux-gnu.tar.gz"
gh release download "v${ZIZMOR_VERSION}" --repo zizmorcore/zizmor --pattern "${archive}"
gh attestation verify "${archive}" --repo zizmorcore/zizmor
mkdir -p ~/.local/bin
tar -xzf "${archive}" -C ~/.local/bin zizmor
chmod +x ~/.local/bin/zizmor
- name: Run zizmor
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ~/.local/bin/zizmor --config zizmor.yml .github/workflows