forked from dragonx943/manga-repo
-
Notifications
You must be signed in to change notification settings - Fork 5
66 lines (55 loc) · 2.06 KB
/
Copy pathcodeql.yml
File metadata and controls
66 lines (55 loc) · 2.06 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
64
65
66
name: CodeQL
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
paths:
- 'src/**'
- 'build.gradle.kts'
- 'gradle/libs.versions.toml'
- '.github/workflows/codeql.yml'
schedule:
- cron: '17 4 * * 1'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: false
permissions:
contents: read
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
timeout-minutes: 45
permissions:
security-events: write
actions: read
contents: read
strategy:
fail-fast: false
matrix:
language: [ 'java-kotlin' ]
steps:
- name: Checkout repository 🌏
uses: actions/checkout@900f2210b1d28bbbd0bd22d17926b9e224e8f231 # v6.0.2
- name: Set up Java environment 🔧
uses: actions/setup-java@b622de1dfa918ecc0ab28f40cd42e3c3752cd6c5 # v5.2.0
with:
java-version: '17'
distribution: 'temurin'
- name: Set up Gradle environment 📦
uses: gradle/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0
with:
gradle-version: '9.3.1'
- name: Initialize CodeQL 🔍
uses: github/codeql-action/init@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2
with:
languages: ${{ matrix.language }}
queries: security-and-quality
- name: Build with Gradle 🚀
run: ./gradlew compileKotlin --no-daemon --rerun-tasks --no-build-cache
- name: Perform CodeQL Analysis 🔬
uses: github/codeql-action/analyze@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2
with:
category: "/language:${{ matrix.language }}"