mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
Add CodeQL (#2476)
The CodeQL repo settings weren't sticking, so I figured I'd check our config in as a workflow instead. --------- Signed-off-by: Jamil <jamilbk@users.noreply.github.com>
This commit is contained in:
44
.github/workflows/codeql.yml
vendored
Normal file
44
.github/workflows/codeql.yml
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
name: "CodeQL"
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
name: Analyze
|
||||
runs-on: ${{ (matrix.language == 'swift' && 'macos-13') || 'ubuntu-22.04' }}
|
||||
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
security-events: write
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- language: 'javascript-typescript'
|
||||
working-directory: 'website/'
|
||||
- language: 'javascript-typescript'
|
||||
working-directory: 'elixir/apps/web/assets/'
|
||||
# TODO
|
||||
# - language: 'java-kotlin'
|
||||
# working-directory: 'kotlin/android'
|
||||
# - language: 'swift'
|
||||
# working-directory: 'swift/apple'
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v2
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v2
|
||||
with:
|
||||
working-directory: ${{ matrix.working-directory }}
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v2
|
||||
with:
|
||||
category: "/language:${{matrix.language}}"
|
||||
@@ -143,6 +143,7 @@ android {
|
||||
|
||||
dependencies {
|
||||
val coreVersion = "1.12.0"
|
||||
val navVersion = "2.7.4"
|
||||
|
||||
// Connlib
|
||||
implementation(project(":connlib"))
|
||||
@@ -162,8 +163,11 @@ dependencies {
|
||||
implementation("androidx.lifecycle:lifecycle-livedata-ktx:2.6.1")
|
||||
|
||||
// Navigation
|
||||
implementation("androidx.navigation:navigation-fragment-ktx:2.5.3")
|
||||
implementation("androidx.navigation:navigation-ui-ktx:2.5.3")
|
||||
implementation("androidx.navigation:navigation-fragment-ktx:$navVersion")
|
||||
implementation("androidx.navigation:navigation-ui-ktx:$navVersion")
|
||||
|
||||
// Safe Args
|
||||
//
|
||||
|
||||
// Hilt
|
||||
implementation("com.google.dagger:hilt-android:2.48.1")
|
||||
|
||||
Reference in New Issue
Block a user