Skip to content

Commit 2dfcf27

Browse files
committed
upload sarif output
1 parent 92bc92b commit 2dfcf27

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

.github/workflows/codeql.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ jobs:
4646
include:
4747
- language: java-kotlin
4848
build-mode: manual
49-
- language: actions
50-
build-mode: none
49+
# - language: actions
50+
# build-mode: none
5151

5252
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
5353
# Use `c-cpp` to analyze code written in C, C++ or both
@@ -67,6 +67,10 @@ jobs:
6767
with:
6868
languages: ${{ matrix.language }}
6969
build-mode: ${{ matrix.build-mode }}
70+
# config: |
71+
# packs:
72+
# - codeql/java-queries:AlertSuppression.ql
73+
# - codeql/java-queries:AlertSuppressionAnnotations.ql
7074
packs: "codeql/java-queries:AlertSuppression.ql,codeql/java-queries:AlertSuppressionAnnotations.ql"
7175

7276
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -91,3 +95,19 @@ jobs:
9195
uses: github/codeql-action/analyze@v3
9296
with:
9397
category: "/language:${{matrix.language}}"
98+
99+
- uses: actions/upload-artifact@v4
100+
with:
101+
name: java.sarif
102+
path: results/java.sarif
103+
retention-days: 1
104+
105+
106+
# - name: Dismiss alerts
107+
# if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
108+
# uses: advanced-security/dismiss-alerts@v1
109+
# with:
110+
# sarif-id: $[[ steps.analyze.outputs.sarif-id ]]
111+
# sarif-file: sarif-results/java.sarif
112+
# env:
113+
# GITHUB_TOKEN: $[[ secrets.GITHUB_TOKEN ]]

buildSrc/src/main/kotlin/UpdateLogListTask.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ abstract class UpdateLogListTask : DefaultTask() {
4444
@TaskAction
4545
fun greet() {
4646
val url = "https://www.gstatic.com/ct/log_list/v3/log_list.zip"
47-
4847
val outputFolder = project.projectDir.toPath().resolve("src/main/resources").apply {
4948
createDirectories()
5049
}

0 commit comments

Comments
 (0)