Skip to content

Commit 03f8ea3

Browse files
committed
ci: fix codeql analysis
1 parent 899f7fa commit 03f8ea3

File tree

2 files changed

+49
-4
lines changed

2 files changed

+49
-4
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ main, release/*, bugfix/* ]
6+
pull_request:
7+
branches: [ main, release/*, bugfix/* ]
8+
paths-ignore:
9+
- '**.md'
10+
- 'docs/**'
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
analyze:
18+
name: Analyze
19+
runs-on: ubuntu-latest
20+
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
language: [ 'java' ]
25+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
26+
# Learn more:
27+
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
28+
29+
steps:
30+
- uses: actions/checkout@v4
31+
- uses: eclipse-edc/.github/.github/actions/setup-build@main
32+
33+
# Initializes the CodeQL tools for scanning.
34+
- name: Initialize CodeQL
35+
uses: github/codeql-action/init@v3
36+
with:
37+
languages: ${{ matrix.language }}
38+
queries: +security-and-quality
39+
# If you wish to specify custom queries, you can do so here or in a config file.
40+
# By default, queries listed here will override any specified in a config file.
41+
# Prefix the list here with "+" to use these queries and those in the config file.
42+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
43+
44+
# Compiles production Java source (without tests)
45+
- name: Build
46+
run: ./gradlew compileJava --no-daemon
47+
48+
- name: Perform CodeQL Analysis
49+
uses: github/codeql-action/analyze@v3

.github/workflows/verify.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ jobs:
2525
- name: Run Checkstyle
2626
run: ./gradlew --refresh-dependencies checkstyleMain checkstyleTest checkstyleTestFixtures
2727

28-
CodeQL:
29-
uses: eclipse-edc/.github/.github/workflows/codeql-analysis.yml@main
30-
secrets: inherit
31-
3228
Dependency-Check:
3329
uses: eclipse-edc/.github/.github/workflows/dependency-check.yml@main
3430
secrets: inherit

0 commit comments

Comments
 (0)