Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

fix: Snyk scan failing after bun migration (#69498)

Nemanja Glumacdccfcc9db1ff
diff --git a/.github/workflows/snyk.yml b/.github/workflows/snyk.yml
index 9dd43255798..830ed71f774 100644
--- a/.github/workflows/snyk.yml
+++ b/.github/workflows/snyk.yml
@@ -59,6 +59,11 @@ jobs:
run: |
bun install --yarn
cd release && bun install --yarn
+ # Fix bun's yarn.lock version range normalization inconsistency
+ # Bun normalizes "< 3.0.0" to "< 3" in alias entries but not in dependency specs
+ # This causes Snyk to fail matching dependencies to their resolutions
+ sed -i -E 's/< ([0-9]+)\.0\.0"/< \1"/g; s/< ([0-9]+)\.0"/< \1"/g' yarn.lock
+ sed -i -E 's/< ([0-9]+)\.0\.0"/< \1"/g; s/< ([0-9]+)\.0"/< \1"/g' release/yarn.lock
- uses: snyk/actions/[email protected]
- name: Run snyk test
env: