Skip to content

Commit eb35a27

Browse files
authored
chore: run codeql on PRs (#274)
1 parent 25e1b88 commit eb35a27

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: "CodeQL Analysis"
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
# ┌───────────── minute (0 - 59)
7+
# │ ┌───────────── hour (0 - 23)
8+
# │ │ ┌───────────── day of the month (1 - 31)
9+
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
10+
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
11+
# │ │ │ │ │
12+
# │ │ │ │ │
13+
# │ │ │ │ │
14+
# * * * * *
15+
- cron: '30 1 * * *'
16+
push:
17+
branches: [ main ]
18+
pull_request:
19+
20+
jobs:
21+
CodeQL-Build:
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@v4
27+
28+
- name: Set up Java 17
29+
uses: actions/setup-java@v3
30+
with:
31+
distribution: temurin
32+
java-version: 17
33+
34+
# Initializes the CodeQL tools for scanning.
35+
- name: Initialize CodeQL
36+
uses: github/codeql-action/init@v2
37+
with:
38+
languages: java
39+
# using "latest" helps to keep up with the latest Kotlin support
40+
# see https://github.com/github/codeql-action/issues/1555#issuecomment-1452228433
41+
tools: latest
42+
43+
- uses: gradle/gradle-build-action@v2
44+
with:
45+
# skipping build cache is needed so that all modules will be analyzed
46+
arguments: assemble --no-build-cache
47+
48+
- name: Perform CodeQL Analysis
49+
uses: github/codeql-action/analyze@v2

0 commit comments

Comments
 (0)