Skip to content

Commit 0e7c0db

Browse files
joker23claude
andcommitted
fix(ci): skip platform-specific optional deps to avoid LGPL false positives
Revert the omit-optional gh-actions branch (didn't filter transitive optionals). Instead, set YARN_SUPPORTED_ARCHITECTURES to empty arrays so yarn skips all platform-specific optional deps (like @img/sharp-libvips-*) during install. If they're not in node_modules, cdxgen won't pick them up. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent bbda5d9 commit 0e7c0db

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/dependency-scan.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ jobs:
3434
- name: Enable corepack
3535
run: corepack enable
3636

37-
- name: Install dependencies
37+
- name: Install dependencies (skip platform-specific optionals)
3838
run: yarn install
3939
env:
4040
YARN_ENABLE_IMMUTABLE_INSTALLS: 'false'
41+
YARN_SUPPORTED_ARCHITECTURES: '{"os":[],"cpu":[],"libc":[]}'
4142

4243
- name: Generate SBOM
43-
uses: launchdarkly/gh-actions/actions/dependency-scan/generate-sbom@88b91f303c25af3a90c2f0a98dd75af64c3bb332 # skz/ignore-optional
44+
uses: launchdarkly/gh-actions/actions/dependency-scan/generate-sbom@8220ae5b6e56f7108d076da0e710dc4feca15101 # main
4445
with:
4546
types: 'nodejs'
46-
omit-optional: 'true'
4747

4848
evaluate-policy:
4949
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)