Skip to content

Commit 20c02c7

Browse files
committed
moving the init to before the build
1 parent 0901578 commit 20c02c7

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/codeql.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,7 @@ jobs:
4848

4949
# Initializes the CodeQL tools for scanning.
5050

51-
- name: Checkout repository
52-
uses: actions/checkout@v4
5351

54-
- name: Set up JDK
55-
uses: actions/setup-java@v4
56-
with:
57-
java-version: '11' # Specify the JDK version your project needs
58-
distribution: 'temurin'
59-
cache: maven
6052

6153
- name: Initialize CodeQL
6254
uses: github/codeql-action/init@v3
@@ -69,6 +61,13 @@ jobs:
6961
# For more 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
7062
queries: security-extended,security-and-quality
7163

64+
- name: Set up JDK
65+
uses: actions/setup-java@v4
66+
with:
67+
java-version: '11' # Specify the JDK version your project needs
68+
distribution: 'temurin'
69+
cache: maven
70+
7271
# If the analyze step fails for one of the languages you are analyzing with
7372
# "We were unable to automatically build your code", modify the matrix above
7473
# to set the build mode to "manual" for that language. Then modify this step

0 commit comments

Comments
 (0)