Skip to content

Commit 555da7f

Browse files
committed
chore: update CodeQL configuration to use fixed Java language setting
1 parent fcacfbf commit 555da7f

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ jobs:
6565
# defining strategy for the job - matrix strategy for codeQL analysis
6666
strategy:
6767
fail-fast: false
68-
matrix:
69-
language: [ 'java' ]
70-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
71-
# Use only 'java' to analyze code written in Java, Kotlin or both
72-
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
73-
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
68+
# matrix:
69+
# language: [ 'java' ]
70+
# # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
71+
# # Use only 'java' to analyze code written in Java, Kotlin or both
72+
# # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
73+
# # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
7474

7575
# defining steps for the job as explained above
7676
steps:
@@ -94,7 +94,8 @@ jobs:
9494
- name: Initialize CodeQL
9595
uses: github/codeql-action/init@v3
9696
with:
97-
languages: ${{ matrix.language }} # defining the language for the CodeQL analysis
97+
languages: java
98+
# languages: ${{ matrix.language }} # defining the language for the CodeQL analysis
9899
# debug: true # uncomment this line to enable debugging for CodeQL analysis step
99100
# If you wish to specify custom queries, you can do so here or in a config file.
100101
# By default, queries listed here will override any specified in a config file.
@@ -113,7 +114,8 @@ jobs:
113114
- name: Perform CodeQL Analysis
114115
uses: github/codeql-action/analyze@v3
115116
with:
116-
category: "/language:${{matrix.language}}" # defining the language for the CodeQL analysis
117+
category: "/language:java"
118+
# category: "/language:${{matrix.language}}" # defining the language for the CodeQL analysis
117119
- uses: actions/upload-artifact@v3 # uploading the artifact to the GitHub Artifacts. Link to the documentation - https://docs.github.com/en/actions/guides/storing-workflow-data-as-artifacts
118120
with:
119121
name: jar-artifact # naming the artifact jar file/s path

0 commit comments

Comments
 (0)