55 branches : [ "main" ]
66 pull_request :
77 branches : [ "main" ]
8-
8+
99jobs :
1010 analyze :
1111 name : Analyze
12- runs-on : ${{ matrix.language == 'swift' && 'macos-latest' || 'ubuntu-latest' }}
13- timeout-minutes : ${{ matrix.language == 'swift' && 120 || 360 }}
12+ runs-on : ${{ ( matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
13+ timeout-minutes : 360
1414 permissions :
1515 actions : read
1616 contents : read
@@ -19,69 +19,45 @@ jobs:
1919 strategy :
2020 fail-fast : false
2121 matrix :
22- language : [ 'csharp', 'javascript-typescript', 'python' ]
22+ language : [ 'csharp', 'javascript-typescript' ]
2323 dot-version : ['3.1.x']
2424
2525 steps :
2626 - name : Checkout repository
2727 uses : actions/checkout@v3
2828
29- - name : Install dependencies
30- run : |
31- sudo apt-get update
32- sudo apt-get install -y \
33- libssl3 \
34- libssl-dev \
35- libicu-dev \
36- ca-certificates \
37- openssl \
38- curl \
39- pkg-config \
40- zlib1g-dev
41-
42- - name : Verify OpenSSL Installation
43- run : |
44- openssl version
45- ldconfig -p | grep libssl
46- ls /usr/lib/x86_64-linux-gnu | grep libssl
47-
48- - name : Set System.Globalization.Invariant to true
49- run : echo "DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1" >> $GITHUB_ENV
50-
51- - name : Setup dotnet ${{ matrix.dot-version }}
29+ - name : Setup .NET for C#
5230 uses : actions/setup-dotnet@v3
5331 with :
5432 dotnet-version : ${{ matrix.dot-version }}
5533
56- - name : Display dotnet version
34+ - name : Display .NET version
5735 run : dotnet --version
5836
59- - name : Locate libssl and Set LD_LIBRARY_PATH
60- run : |
61- LIBSSL_PATH=$(find /usr/lib /lib /usr/local/lib -name "libssl.so*" | head -n 1)
62- echo "LIBSSL_PATH=$LIBSSL_PATH"
63- if [ -z "$LIBSSL_PATH" ]; then
64- echo "libssl not found"
65- exit 1
66- fi
67- export LD_LIBRARY_PATH=$(dirname $LIBSSL_PATH):$LD_LIBRARY_PATH
68- echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" >> $GITHUB_ENV
69-
70- - name : Run dotnet restore with verbose logging
71- run : dotnet restore --verbosity detailed
72-
7337 - name : Initialize CodeQL
7438 uses : github/codeql-action/init@v2
7539 with :
7640 languages : ${{ matrix.language }}
7741
78- - name : Build the C# project
79- if : matrix.language == 'csharp'
42+ - name : Autobuild
43+ uses : github/codeql-action/autobuild@v2
44+
45+ - name : Install dependencies for JavaScript/TypeScript
46+ if : matrix.language == 'javascript-typescript'
47+ run : npm ci
48+
49+ - name : Install dependencies for Python
50+ if : matrix.language == 'python'
8051 run : |
81- dotnet restore
82- dotnet build --configuration Release
52+ python -m pip install --upgrade pip
53+ pip install -r requirements.txt
8354
8455 - name : Perform CodeQL Analysis
8556 uses : github/codeql-action/analyze@v2
8657 with :
87- category : " /language:${{matrix.language}}"
58+ category : " /language:${{ matrix.language }}"
59+
60+ - name : Upload SARIF results
61+ uses : github/codeql-action/upload-sarif@v2
62+ with :
63+ sarif_file : results.sarif
0 commit comments