Skip to content

Commit

Permalink
chore(security): Setup CodeQL workflow (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseLion committed Nov 4, 2023
1 parent fc2ff65 commit b63fb9d
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CodeQL

on:
push:
branches: main
pull_request:
branches: main
schedule:
- cron: 23 2 * * 0

concurrency:
group: codeql-${{ github.ref_name }}
cancel-in-progress: true

jobs:
analyze:
runs-on: ubuntu-latest
timeout-minutes: 360
permissions:
actions: read
contents: read
security-events: write

steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: oracle
java-version: 21
check-latest: true
- uses: gradle/gradle-build-action@v2
- uses: github/codeql-action/init@v2
with:
languages: java-kotlin
- run: ./gradlew build -x check
- uses: github/codeql-action/analyze@v2
with:
category: /language:java-kotlin

0 comments on commit b63fb9d

Please sign in to comment.