Skip to content

Security Scanning

Security Scanning #486

name: "Security Scanning"
on:
pull_request:
branches: [main]
push:
branches: [main]
schedule:
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
# * * * * *
- cron: '30 6 * * 1'
jobs:
CodeQL-Build:
runs-on: ubuntu-latest
# The CodeQL Action requires security write permission
permissions:
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: kotlin
queries: security-and-quality
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Build
run: ./gradlew --no-daemon build -x test
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2