Skip to content

Commit 1c28691

Browse files
authored
Add CodeQL analysis workflow for repository
1 parent 7d9b1ae commit 1c28691

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
schedule:
9+
- cron: '0 3 * * 1'
10+
11+
jobs:
12+
analyze:
13+
name: Analyze
14+
runs-on: ubuntu-latest
15+
16+
permissions:
17+
actions: read
18+
contents: read
19+
security-events: write
20+
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
language: [ 'java-kotlin' ]
25+
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v4
29+
30+
- name: Initialize CodeQL
31+
uses: github/codeql-action/init@v3
32+
with:
33+
languages: ${{ matrix.language }}
34+
35+
# Install Flutter
36+
- name: Setup Flutter
37+
uses: subosito/flutter-action@v2
38+
with:
39+
flutter-version: 'stable'
40+
41+
- name: Install dependencies
42+
run: flutter pub get
43+
44+
# Manual build (ovo rešava CodeQL problem)
45+
- name: Build Android
46+
run: flutter build apk --debug
47+
48+
- name: Perform CodeQL Analysis
49+
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)