-
Notifications
You must be signed in to change notification settings - Fork 4
72 lines (60 loc) · 1.71 KB
/
Copy pathcodeql.yml
File metadata and controls
72 lines (60 loc) · 1.71 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
67
68
69
70
71
72
name: CodeQL Security Analysis
on:
push:
branches: [main, master, dev]
pull_request:
branches: [main, master, dev]
schedule:
- cron: '30 5 * * 1'
workflow_dispatch:
permissions:
contents: read
security-events: write
actions: read
jobs:
analyze-java-kotlin:
name: Analyze Android (Java/Kotlin)
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v6
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6
- name: Create local.properties
run: |
echo "sdk.dir=$ANDROID_HOME" > local.properties
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: java-kotlin
queries: security-extended
- name: Build Android project
run: ./gradlew assembleDebug --no-daemon --no-build-cache
env:
CI: true
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: '/language:java-kotlin'
analyze-javascript:
name: Analyze JavaScript (Website & Workers)
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: javascript-typescript
queries: security-extended
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: '/language:javascript-typescript'