Repository navigation
fix(ci): add --ignore-scripts to platform test installs to block post install attacks - #2206
Merged
Merged
Conversation
@supabase/auth-js
@supabase/functions-js
@supabase/postgrest-js
@supabase/realtime-js
@supabase/storage-js
@supabase/supabase-js
commit: |
grdsdev
previously approved these changes
Mar 31, 2026
staaldraad
previously approved these changes
Mar 31, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Updates CI/platform test dependency installation commands to disable npm lifecycle scripts, reducing exposure to post-install script attacks during integration test runs.
Changes:
- Add
--ignore-scriptsto the Next.js and Expo dependency install steps in the integration test GitHub Actions workflow. - Add
--ignore-scriptsto the Expo integration test Nxinstalltarget.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| packages/core/supabase-js/test/integration/expo/project.json | Disables npm lifecycle scripts for the Expo Nx install target. |
| .github/workflows/integration-tests.yml | Disables npm lifecycle scripts when installing Next.js/Expo integration test dependencies in CI. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
staaldraad
approved these changes
Mar 31, 2026
mandarini
enabled auto-merge (squash)
March 31, 2026 16:17
o-santi
approved these changes
Mar 31, 2026
This was referenced Apr 7, 2026
This was referenced Apr 7, 2026
This was referenced Apr 7, 2026
mandarini
pushed a commit
to supabase/ssr
that referenced
this pull request
Apr 7, 2026
This PR updates `@supabase/supabase-js` to v2.102.1. **Source**: supabase-js-stable-release --- ## Release Notes ## v2.102.1 ## 2.102.1 (2026-04-07) ### 🩹 Fixes - **functions:** add toJSON to FunctionsError for correct JSON serialization ([#2226](supabase/supabase-js#2226)) ### ❤️ Thank You - oniani1 ## v2.102.0 ## 2.102.0 (2026-04-07) ### 🚀 Features - **postgrest:** add automatic retries for transient errors ([#2072](supabase/supabase-js#2072)) - **postgrest:** add success discriminator field to PostgREST response types ([#2198](supabase/supabase-js#2198)) - **supabase:** export PostgrestFilterBuilder and StorageApiError from supabase-js ([#2222](supabase/supabase-js#2222)) ### 🩹 Fixes - **auth:** downgrade console.error to console.warn for missing session ([#2214](supabase/supabase-js#2214)) - **ci:** add --ignore-scripts to platform test installs to block post install attacks ([#2206](supabase/supabase-js#2206)) - **postgrest:** add toJSON to PostgrestError for correct JSON serialization ([#2212](supabase/supabase-js#2212)) - **postgrest:** reject excess properties in insert, update, and upsert ([#2186](supabase/supabase-js#2186)) - **storage:** set correct content-type for uploads ([#2211](supabase/supabase-js#2211)) - **storage:** avoid duplicate content-type headers in vector requests ([#2220](supabase/supabase-js#2220)) ### ❤️ Thank You - Clay - Guilherme Souza - Katerina Skroumpelou @mandarini - oniani1 - Vaibhav @7ttp This PR was created automatically. Co-authored-by: supabase-workflow-trigger[bot] <266661614+supabase-workflow-trigger[bot]@users.noreply.github.com>
mandarini
pushed a commit
to supabase/supabase
that referenced
this pull request
Apr 7, 2026
This PR updates @supabase/*-js libraries to version 2.102.1. **Source**: supabase-js-stable-release **Changes**: - Updated @supabase/supabase-js to 2.102.1 - Updated @supabase/auth-js to 2.102.1 - Updated @supabase/realtime-js to 2.102.1 - Updated @supabase/postgest-js to 2.102.1 - Refreshed pnpm-lock.yaml --- ## Release Notes ## v2.102.1 ## 2.102.1 (2026-04-07) ### 🩹 Fixes - **functions:** add toJSON to FunctionsError for correct JSON serialization ([#2226](supabase/supabase-js#2226)) ### ❤️ Thank You - oniani1 ## v2.102.0 ## 2.102.0 (2026-04-07) ### 🚀 Features - **postgrest:** add automatic retries for transient errors ([#2072](supabase/supabase-js#2072)) - **postgrest:** add success discriminator field to PostgREST response types ([#2198](supabase/supabase-js#2198)) - **supabase:** export PostgrestFilterBuilder and StorageApiError from supabase-js ([#2222](supabase/supabase-js#2222)) ### 🩹 Fixes - **auth:** downgrade console.error to console.warn for missing session ([#2214](supabase/supabase-js#2214)) - **ci:** add --ignore-scripts to platform test installs to block post install attacks ([#2206](supabase/supabase-js#2206)) - **postgrest:** add toJSON to PostgrestError for correct JSON serialization ([#2212](supabase/supabase-js#2212)) - **postgrest:** reject excess properties in insert, update, and upsert ([#2186](supabase/supabase-js#2186)) - **storage:** set correct content-type for uploads ([#2211](supabase/supabase-js#2211)) - **storage:** avoid duplicate content-type headers in vector requests ([#2220](supabase/supabase-js#2220)) ### ❤️ Thank You - Clay - Guilherme Souza - Katerina Skroumpelou @mandarini - oniani1 - Vaibhav @7ttp ## v2.101.1 ## 2.101.1 (2026-03-31) ### 🩹 Fixes - **storage:** support exactOptionalPropertyTypes ([#2200](supabase/supabase-js#2200)) ### ❤️ Thank You - Vaibhav @7ttp This PR was created automatically. Co-authored-by: supabase-workflow-trigger[bot] <266661614+supabase-workflow-trigger[bot]@users.noreply.github.com>
5 of 6 tasks
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
What changed?
Added
--ignore-scriptsto twonpm installcalls in the integration test workflow and the Expo Nx install target:.github/workflows/integration-tests.yml: bothnpm install --legacy-peer-depscalls (Next.js and Expo platform test setup) now include--ignore-scriptspackages/core/supabase-js/test/integration/expo/project.json: thenx install expo-appconvenience target now includes--ignore-scriptsWhy was this change needed?
On March 30-31, 2026, a supply chain attack compromised
[email protected]on npm. The malicious version introduced a dependency ([email protected]) with apostinstallhook that deploys a remote access trojan on install across macOS, Windows, and Linux.The integration test workflow installs dependencies fresh from the registry in the Next.js and Expo subdirectories (without lockfile enforcement, due to preview packages using
0.0.0-automatedversions that do not satisfy peer dependency ranges). This means any maliciouspostinstallhook in the resolved dependency tree would execute on the CI runner.The
--ignore-scriptsflag prevents allpostinstallhooks from executing during these installs. Theplain-crypto-jspayload is delivered entirely viapostinstall, so this flag neutralises that attack vector categorically.The repository was not compromised by this incident. Neither Next.js nor Expo pull axios transitively, and all other CI workflows use
npm ciwith a committed lockfile. This change is defence-in-depth to protect against similar attacks in the future.Screenshots/Examples
N/A
Breaking changes
Checklist
<type>(<scope>): <description>npx nx formatto ensure consistent code formattingAdditional notes
Related incident: Supply Chain Attack on Axios Pulls Malicious Dependency from npm - Socket Research Team, March 31, 2026.