This repository has been archived by the owner on Dec 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (55 loc) · 1.71 KB
/
codeql.yml
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
name: "CodeQL Advanced"
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
schedule:
- cron: 0 19 * * 0 # Sunday 4am JST
jobs:
analyze:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
packages: read
security-events: write
steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v4
# https://github.com/timheuer/base64-to-file
- name: Set google-services.json
id: set_google_services
uses: timheuer/[email protected]
with:
fileName: 'google-services.json'
fileDir: './app/'
encodedString: ${{ secrets.GOOGLE_SERVICES_JSON }}
- name: Set keystore's file
id: set_keystore
uses: timheuer/[email protected]
with:
fileName: 'release.jks'
fileDir: './'
encodedString: ${{ secrets.KEYSTORE }}
- uses: ./.github/actions/setup-java-runtime
# https://github.com/gradle/actions
- uses: gradle/actions/setup-gradle@v4
- run: chmod +x gradlew
# https://github.com/github/codeql-action
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: java-kotlin
build-mode: manual
- name: Build manually
run: ./gradlew app:assembleRelease
env:
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
# https://github.com/github/codeql-action
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:java-kotlin"