Skip to content

Commit 8f8870a

Browse files
committed
- switches to manual build for codeql
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
1 parent 851d255 commit 8f8870a

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

‎.github/workflows/codeql-analysis.yml‎

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ jobs:
4444
- name: Checkout repository
4545
uses: actions/checkout@v3
4646

47+
- name: Set up JDK
48+
uses: actions/setup-java@v3
49+
with:
50+
java-version: 18
51+
distribution: 'adopt'
52+
cache: gradle
53+
4754
# Initializes the CodeQL tools for scanning.
4855
- name: Initialize CodeQL
4956
uses: github/codeql-action/init@v2
@@ -59,18 +66,19 @@ jobs:
5966

6067
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
6168
# If this step fails, then you should remove it and run the build manually (see below)
62-
- name: Autobuild
63-
uses: github/codeql-action/autobuild@v2
69+
# - name: Autobuild
70+
# uses: github/codeql-action/autobuild@v2
6471

6572
# ℹ️ Command-line programs to run using the OS shell.
6673
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
6774

6875
# If the Autobuild fails above, remove it and uncomment the following three lines.
6976
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
7077

71-
# - run: |
72-
# echo "Run, Build Application using script"
73-
# ./location_of_script_within_repo/buildscript.sh
78+
- name: Grant execute permission for gradlew
79+
run: chmod +x gradlew
80+
- name: Build with Gradle
81+
run: ./gradlew build
7482

7583
- name: Perform CodeQL Analysis
7684
uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)