Skip to content

Commit

Permalink
TB-50 Setup codeql workflow on push to main, pr to main and every mon…
Browse files Browse the repository at this point in the history
…day (#55)

* setup codeql workflow on push to main, pr to main and every monday

* remove matrix
  • Loading branch information
anderssonw authored Aug 13, 2024
1 parent 38b47f6 commit 6bd56a7
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: "CodeQL"

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '00 7 * * 1'

jobs:
analyze:
name: Analyze Kotlin Build
runs-on: ubuntu-latest
timeout-minutes: 360
permissions:
# required for all workflows
security-events: write

# required to fetch internal or private CodeQL packs
packages: read

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

- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: java-kotlin
build-mode: manual

- name: Build
run: ./gradlew build -x test -x intTest --info

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:java-kotlin"

0 comments on commit 6bd56a7

Please sign in to comment.