11name : " CodeQL"
2-
2+
33on :
44 push :
55 branches : [ "main" ]
66 pull_request :
77 branches : [ "main" ]
8-
8+
99jobs :
1010 analyze :
1111 name : Analyze
@@ -15,13 +15,13 @@ jobs:
1515 actions : read
1616 contents : read
1717 security-events : write
18-
18+
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']
24-
24+
2525 steps :
2626 - name : Checkout repository
2727 uses : actions/checkout@v3
@@ -31,33 +31,38 @@ jobs:
3131 sudo apt-get update
3232 sudo apt-get install -y libicu-dev libssl-dev ca-certificates openssl
3333
34- - name : Link OpenSSL libraries
34+ - name : Upgrade OpenSSL and libssl
35+ run : |
36+ sudo apt-get install --only-upgrade openssl libssl-dev
37+ sudo apt-get install -y libssl1.1 libssl3
38+
39+ - name : Set environment variable for SSL path
3540 run : |
36- sudo ln -sf /usr/lib/ssl /usr/include/openssl
41+ echo "LD_LIBRARY_PATH= /usr/local/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV
3742 sudo ldconfig
3843
3944 - name : Setup dotnet ${{ matrix.dot-version }}
4045 uses : actions/setup-dotnet@v3
4146 with :
4247 dotnet-version : ${{ matrix.dot-version }}
43-
48+
4449 - name : Set Globalization Invariant Mode (optional)
4550 run : echo "DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1" >> $GITHUB_ENV
4651
4752 - name : Display dotnet version
4853 run : dotnet --version
49-
54+
5055 - name : Initialize CodeQL
5156 uses : github/codeql-action/init@v2
5257 with :
5358 languages : ${{ matrix.language }}
54-
59+
5560 - name : Build the C# project
5661 if : matrix.language == 'csharp'
5762 run : |
5863 dotnet restore
5964 dotnet build --configuration Release
60-
65+
6166 - name : Perform CodeQL Analysis
6267 uses : github/codeql-action/analyze@v2
6368 with :
0 commit comments