You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# # Use only 'java' to analyze code written in Java, Kotlin or both
72
72
# # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
@@ -94,8 +94,7 @@ jobs:
94
94
- name: Initialize CodeQL
95
95
uses: github/codeql-action/init@v3
96
96
with:
97
-
languages: java
98
-
# languages: ${{ matrix.language }} # defining the language for the CodeQL analysis
97
+
languages: ${{ matrix.language }} # defining the language for the CodeQL analysis
99
98
# debug: true # uncomment this line to enable debugging for CodeQL analysis step
100
99
# If you wish to specify custom queries, you can do so here or in a config file.
101
100
# By default, queries listed here will override any specified in a config file.
@@ -114,9 +113,10 @@ jobs:
114
113
- name: Perform CodeQL Analysis
115
114
uses: github/codeql-action/analyze@v3
116
115
with:
117
-
category: "/language:java"
118
-
# category: "/language:${{matrix.language}}" # defining the language for the CodeQL analysis
116
+
category: "/language:${{matrix.language}}"# defining the language for the CodeQL analysis
117
+
119
118
- uses: actions/upload-artifact@v4.4.3 # uploading the artifact to the GitHub Artifacts. Link to the documentation - https://docs.github.com/en/actions/guides/storing-workflow-data-as-artifacts
119
+
if: matrix.language == 'java' # upload the artifact only for the java language
120
120
with:
121
121
name: jar-artifact # naming the artifact jar file/s path
122
122
path: target/ # actual relative path to the artifact in the container - target/
0 commit comments