Repository navigation
63 lines (62 loc) · 1.76 KB
/
Copy pathcodeql-analysis.yml
File metadata and controls
63 lines (62 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: CodeQL
permissions:
contents: read
on:
push:
branches: [ main, '0.41', '0.42' ]
paths-ignore:
- 'docs/**'
- 'scripts/**'
- '.github/pull_request_template.md'
- '.gitignore'
- '**.adoc'
- '**.txt'
- '**.groovy'
pull_request:
# The branches below must be a subset of the branches above
branches: [ main, '0.41' ]
paths-ignore:
- 'docs/**'
- 'scripts/**'
- '.github/pull_request_template.md'
- '.gitignore'
- '**.adoc'
- '**.txt'
schedule:
- cron: '0 13 * * 1'
jobs:
gradle-wrapper-validation:
uses: ./.github/workflows/gradle-wrapper-validation.yml
analyze:
needs: gradle-wrapper-validation
permissions:
contents: read
actions: read
security-events: write
name: Analyze
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: [ 'java' ]
steps:
- name: Checkout Code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up JDK
uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1
with:
java-version: 17
distribution: 'zulu'
cache: 'gradle'
- name: Print JDK Version
run: java -version
- name: Initialize CodeQL
uses: github/codeql-action/init@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2
with:
languages: ${{ matrix.language }}
- name: Clean Gradle project
run: ./gradlew --parallel clean
- name: Assemble Gradle project
run: ./gradlew --parallel --no-build-cache assemble
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2