Skip to content

Commit 5a29c47

Browse files
author
Oleksandr Dzhychko
committed
ci: disable globalization support when running @microsoft/sarif-multitool
The action started failing because `ubuntu-latest` change from `ubuntu-22.04` to `ubuntu-24.04` and does not have packages for ICU installed by default. Because we do not need globalization support, we can just disable it.
1 parent 260e367 commit 5a29c47

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/build.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,15 @@ jobs:
6868
- name: Combine SARIF files
6969
run: |
7070
npx @microsoft/sarif-multitool merge --merge-runs --output-file merged.sarif $(find . -iname '*.sarif*')
71+
env:
72+
# Disables globalization support.
73+
# This makes the @microsoft/sarif-multitool work without ICU package installed.
74+
# If not disabled, we get the following error:
75+
# > Process terminated.
76+
# > Couldn't find a valid ICU package installed on the system.
77+
# > Set the configuration flag System.Globalization.Invariant to true
78+
# > if you want to run with no globalization support.
79+
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: 1
7180
- name: Upload SARIF file
7281
uses: github/codeql-action/upload-sarif@v3
7382
with:

0 commit comments

Comments
 (0)