Skip to content

Commit 5d5a324

Browse files
committed
Fix autobuild for CodeQL, temurin instead of zulu
1 parent 07a0207 commit 5d5a324

2 files changed

Lines changed: 42 additions & 35 deletions

File tree

.github/workflows/build-test-deploy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ jobs:
1313
build-test-and-push:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v3
16+
- name: Checkout repository
17+
uses: actions/checkout@v3
1718
- name: Set up JDK 17
1819
uses: actions/setup-java@v3
1920
with:
2021
java-version: 17
21-
distribution: zulu
22+
distribution: temurin
2223
- name: Docker Login
2324
uses: Azure/docker-login@v1
2425
with:

.github/workflows/codeql-analysis.yml

Lines changed: 39 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
branches:
99
- main
1010
schedule:
11-
- cron: '41 21 * * 6'
11+
- cron: "41 21 * * 6"
1212

1313
jobs:
1414
analyze:
@@ -18,37 +18,43 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
language: [ 'java', 'javascript' ]
21+
language: ["java", "javascript"]
2222

2323
steps:
24-
- name: Checkout repository
25-
uses: actions/checkout@v3
26-
27-
# Initializes the CodeQL tools for scanning.
28-
- name: Initialize CodeQL
29-
uses: github/codeql-action/init@v2
30-
with:
31-
languages: ${{ matrix.language }}
32-
# If you wish to specify custom queries, you can do so here or in a config file.
33-
# By default, queries listed here will override any specified in a config file.
34-
# Prefix the list here with "+" to use these queries and those in the config file.
35-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
36-
37-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
38-
# If this step fails, then you should remove it and run the build manually (see below)
39-
- name: Autobuild
40-
uses: github/codeql-action/autobuild@v2
41-
42-
# ℹ️ Command-line programs to run using the OS shell.
43-
# 📚 https://git.io/JvXDl
44-
45-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
46-
# and modify them (or add more) to build your code if your project
47-
# uses a compiled language
48-
49-
#- run: |
50-
# make bootstrap
51-
# make release
52-
53-
- name: Perform CodeQL Analysis
54-
uses: github/codeql-action/analyze@v2
24+
- name: Checkout repository
25+
uses: actions/checkout@v3
26+
27+
- name: Set up JDK 17
28+
uses: actions/setup-java@v3
29+
with:
30+
java-version: 17
31+
distribution: temurin
32+
33+
# Initializes the CodeQL tools for scanning.
34+
- name: Initialize CodeQL
35+
uses: github/codeql-action/init@v2
36+
with:
37+
languages: ${{ matrix.language }}
38+
# If you wish to specify custom queries, you can do so here or in a config file.
39+
# By default, queries listed here will override any specified in a config file.
40+
# Prefix the list here with "+" to use these queries and those in the config file.
41+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
42+
43+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
44+
# If this step fails, then you should remove it and run the build manually (see below)
45+
- name: Autobuild
46+
uses: github/codeql-action/autobuild@v2
47+
48+
# ℹ️ Command-line programs to run using the OS shell.
49+
# 📚 https://git.io/JvXDl
50+
51+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
52+
# and modify them (or add more) to build your code if your project
53+
# uses a compiled language
54+
55+
#- run: |
56+
# make bootstrap
57+
# make release
58+
59+
- name: Perform CodeQL Analysis
60+
uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)