Skip to content

Commit 4f35f14

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 5da2de5 commit 4f35f14

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/dependency-scan.yml

Lines changed: 2 additions & 2 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
4344
uses: launchdarkly/gh-actions/actions/dependency-scan/generate-sbom@0a54234f88a428df4163234dbb23ddb7fee8b8ec # main
4445
with:
4546
types: 'nodejs'
46-
omit-optional: 'true'
4747

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

0 commit comments

Comments
 (0)