-
-
Notifications
You must be signed in to change notification settings - Fork 56
59 lines (48 loc) · 1.6 KB
/
Copy pathcodeql.yml
File metadata and controls
59 lines (48 loc) · 1.6 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
name: CodeQL
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: "24 6 * * 3"
permissions:
contents: read
security-events: write
jobs:
analyze-actions:
name: Analyze GitHub Actions
runs-on: ubuntu-latest
steps:
- name: Checkout repository source code
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
- name: Initialize CodeQL
uses: github/codeql-action/init@e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81 # v4
with:
languages: actions
build-mode: none
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81 # v4
analyze-java-kotlin:
name: Analyze Java and Kotlin
runs-on: ubuntu-latest
steps:
- name: Checkout repository source code
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
- name: Set up JDK 17
uses: actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95 # v5
with:
java-version: "17"
distribution: temurin
cache: gradle
- name: Initialize CodeQL
uses: github/codeql-action/init@e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81 # v4
with:
languages: java-kotlin
build-mode: manual
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build application for analysis
run: ./gradlew assembleDebug
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81 # v4