-
-
Notifications
You must be signed in to change notification settings - Fork 207
68 lines (60 loc) · 1.44 KB
/
Copy pathcodeql-analysis.yml
File metadata and controls
68 lines (60 loc) · 1.44 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: "CodeQL Analysis"
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
paths:
- '**/*.java'
schedule:
- cron: '15 0 15 * *'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
# SETUP BUILD ENVIRONMENT
- id: prepare-maven-build
name: Prepare Maven build
uses: sualeh/prepare-maven-build@v1.7.2
with:
java-version: 17
- id: install-graphviz
name: Install Graphviz
uses: sualeh/install-graphviz@v1.0.3
# INIT CODEQL
- id: init-codeql
name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: java-kotlin
build-mode: manual
# BUILD DEPENDENCIES
- id: build-schemacrawler-core
name: Build SchemaCrawler-Core
uses: sualeh/build-maven-dependency@v1.0.8
with:
repository: schemacrawler/SchemaCrawler-Core
artifact: us.fatehi:schemacrawler:17.11.4
# BUILD AND TEST
- id: build-test
name: Build all modules and run tests
shell: bash
run: |
# Build
mvn \
--no-transfer-progress \
--batch-mode \
-DskipTests \
clean package
# ANALYZE
- id: perform-codeql-analysis
name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:java"