Skip to content

Commit 9e206c9

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 bc75a68 commit 9e206c9

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@8220ae5b6e56f7108d076da0e710dc4feca15101 # main

0 commit comments

Comments
 (0)