-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (41 loc) · 1.12 KB
/
Copy pathcodeql.yml
File metadata and controls
49 lines (41 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: CodeQL
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
schedule:
- cron: "30 2 * * 1"
permissions:
contents: read
jobs:
analyze:
name: Analyze Java
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout Repository
uses: actions/checkout@v7
- name: Initialize CodeQL
if: ${{ env.ACT != 'true' }}
uses: github/codeql-action/init@v4
with:
languages: java-kotlin
build-mode: autobuild
- name: Autobuild
if: ${{ env.ACT != 'true' }}
uses: github/codeql-action/autobuild@v4
- name: Analyze
if: ${{ env.ACT != 'true' }}
uses: github/codeql-action/analyze@v4
with:
category: "/language:java-kotlin"
- name: Validate CodeQL workflow under act
if: ${{ steps.runtime.outputs.under_act == 'true' }}
run: |
test -f .github/workflows/codeql.yml
test -f pom.xml
echo "CodeQL analysis runs on GitHub; act validated the workflow contract locally."