-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.35 KB
/
Copy pathcodeql.yml
File metadata and controls
50 lines (41 loc) · 1.35 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
50
name: CodeQL
# Static security analysis via GitHub CodeQL.
# Runs on push/PR to main and weekly to catch newly-published CVEs.
# Only the starter module is analysed; the sample application is excluded
# because it requires external Embabel snapshot artifacts.
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '0 9 * * 1'
permissions:
contents: read
security-events: write
actions: read
jobs:
analyze:
name: Analyze Java (CodeQL)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up JDK 21
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
with:
distribution: temurin
java-version: '21'
cache: maven
- name: Initialize CodeQL
uses: github/codeql-action/init@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v4.37.4
with:
languages: java
queries: security-extended
- name: Install parent POM
run: mvn -N install -q
- name: Build starter for CodeQL
run: mvn -B -DskipTests compile -pl embabel-workflow-visualizer-starter
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v4.37.4
with:
category: /language:java