-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (46 loc) · 1.36 KB
/
codeql.yml
File metadata and controls
57 lines (46 loc) · 1.36 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
name: "CodeQL"
# Replaces GitHub's default-setup autobuild, which calls ./gradlew (requires
# gradle-wrapper.jar) and fails because this project keeps the jar out of the
# repo. We mirror the manual build approach used in build.yml instead.
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
schedule:
# Arbitrary weekly scan (Tuesday 19:37 UTC)
- cron: "37 19 * * 2"
permissions:
security-events: write
actions: read
contents: read
jobs:
analyze:
name: Analyze (java-kotlin)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: java-kotlin
queries: security-extended
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: temurin
- name: Setup Gradle 8.13
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: "8.13"
cache-read-only: false
- name: Write local.properties
run: echo "sdk.dir=$ANDROID_SDK_ROOT" > local.properties
- name: Build
run: gradle :app:assembleDebug --no-daemon
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: /language:java-kotlin