Skip to content

Commit 56a4bbb

Browse files
joker23claude
andcommitted
fix(ci): use yarn config set for supportedArchitectures
YARN_SUPPORTED_ARCHITECTURES env var doesn't work as JSON in Yarn 3.4.1. Use yarn config set with --json flag to set each sub-key individually. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4f35f14 commit 56a4bbb

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/dependency-scan.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,13 @@ jobs:
3535
run: corepack enable
3636

3737
- name: Install dependencies (skip platform-specific optionals)
38-
run: yarn install
38+
run: |
39+
yarn config set supportedArchitectures.os --json '[]'
40+
yarn config set supportedArchitectures.cpu --json '[]'
41+
yarn config set supportedArchitectures.libc --json '[]'
42+
yarn install
3943
env:
4044
YARN_ENABLE_IMMUTABLE_INSTALLS: 'false'
41-
YARN_SUPPORTED_ARCHITECTURES: '{"os":[],"cpu":[],"libc":[]}'
4245

4346
- name: Generate SBOM
4447
uses: launchdarkly/gh-actions/actions/dependency-scan/generate-sbom@0a54234f88a428df4163234dbb23ddb7fee8b8ec # main

0 commit comments

Comments
 (0)