mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-23 22:13:38 +00:00
Use Java 11 to build project in the codeql pipeline (#19999)
Codeql uses Java 8 by default, which is too old for the project. Related: https://learn.microsoft.com/en-us/java/openjdk/reasons-to-move-to-java-11 https://github.com/actions/setup-java
This commit is contained in:
parent
15219e2e71
commit
0335ea9f1e
1 changed files with 8 additions and 0 deletions
8
.github/workflows/codeql.yml
vendored
8
.github/workflows/codeql.yml
vendored
|
|
@ -47,6 +47,14 @@ jobs:
|
|||
# Details on CodeQL's query packs refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
|
||||
queries: security-extended,security-and-quality
|
||||
|
||||
# Setup Java to use a version that is not too old for the project
|
||||
- if: ${{ matrix.language == 'java' }}
|
||||
name: Setup Java 11
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: '11'
|
||||
distribution: 'microsoft'
|
||||
|
||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||
# If this step fails, then you should remove it and run the build manually (see below)
|
||||
- if: ${{ matrix.language != 'cpp' }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue