Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
109 changes: 109 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
name: CodeQL

on:
push:
branches:
- main

pull_request:
branches:
- main

jobs:
# ============================================================
# JavaScript / TypeScript
# ============================================================

analyze-javascript:
name: Analyze JavaScript / TypeScript
runs-on: ubuntu-latest

permissions:
security-events: write
packages: read
actions: read
contents: read

steps:
- name: Checkout repository
uses: actions/checkout@v5

- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: javascript-typescript
build-mode: none

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:javascript-typescript"

# ============================================================
# Kotlin / Android
# ============================================================

analyze-kotlin:
name: Analyze Kotlin / Android
runs-on: ubuntu-latest

permissions:
security-events: write
packages: read
actions: read
contents: read

steps:
- name: Checkout repository
uses: actions/checkout@v5

- name: Check whether Kotlin-related files changed
id: changes
uses: dorny/paths-filter@v4
with:
filters: |
kotlin:
- 'modules/**'
- 'plugins/**'

- name: Setup Node
if: steps.changes.outputs.kotlin == 'true'
uses: actions/setup-node@v6
with:
node-version: 24
cache: npm

- name: Setup Java
if: steps.changes.outputs.kotlin == 'true'
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: "17"

- name: Install dependencies
if: steps.changes.outputs.kotlin == 'true'
run: npm ci

- name: Expo Prebuild
if: steps.changes.outputs.kotlin == 'true'
run: npx expo prebuild --clean --no-install

- name: Initialize CodeQL
if: steps.changes.outputs.kotlin == 'true'
uses: github/codeql-action/init@v4
with:
languages: java-kotlin
build-mode: manual

- name: Build Android
if: steps.changes.outputs.kotlin == 'true'
working-directory: android
run: |
chmod +x gradlew
./gradlew assembleDebug --no-daemon

- name: Perform CodeQL Analysis
if: steps.changes.outputs.kotlin == 'true'
uses: github/codeql-action/analyze@v4
with:
category: "/language:java-kotlin"
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">

<solid android:color="?attr/colorPrimary" />
<solid android:color="@color/md_primary" />

</shape>
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
android:viewportHeight="24">

<path
android:fillColor="?attr/colorOnPrimary"
android:fillColor="@color/md_on_primary"
android:pathData="M20,11L7.83,11l5.59,-5.59L12,4l-8,8 8,8 1.41,-1.41L7.83,13H20v-2z" />

</vector>
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
android:viewportHeight="24">

<path
android:fillColor="?attr/colorOnPrimary"
android:fillColor="@color/md_on_primary"
android:pathData="M18,8h-1V6c0,-2.76 -2.24,-5 -5,-5S7,3.24 7,6v2H6c-1.1,0 -2,0.9 -2,2v10c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2V10c0,-1.1 -0.9,-2 -2,-2zM12,18c-1.1,0 -2,-0.9 -2,-2s0.9,-2 2,-2 2,0.9 2,2 -0.9,2 -2,2zM15.1,8H8.9V6c0,-1.71 1.39,-3.1 3.1,-3.1s3.1,1.39 3.1,3.1v2z" />

</vector>
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
android:id="@+id/autofill_domain"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="?attr/colorOnPrimary"
android:textColor="@color/md_on_primary"
android:textSize="16sp"
android:textStyle="bold"
android:maxLines="1"
Expand All @@ -45,7 +45,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:textColor="?attr/colorPrimaryContainer"
android:textColor="@color/md_primary_container"
android:textSize="14sp"
android:maxLines="1"
android:ellipsize="end" />
Expand Down