-
Notifications
You must be signed in to change notification settings - Fork 6
68 lines (57 loc) · 1.76 KB
/
dblinter.yml
File metadata and controls
68 lines (57 loc) · 1.76 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: dbLinter
on:
push:
branches:
- development
pull_request:
branches:
- development
permissions:
contents: read
security-events: write
jobs:
lint:
name: Run dbLinter
runs-on: ubuntu-latest
environment: dblinter
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: "21"
distribution: "oracle"
- name: Download dbLinter CLI
run: |
curl -L -o dblinter.zip https://github.com/Grisselbav/dbLinter/releases/download/v1.3.0/dblinter-1.3.0.zip
unzip dblinter.zip
mv dblinter-* dblinter
chmod +x dblinter/dblinter
- name: Create .dblinter directory
run: mkdir -p .dblinter
- name: Create dblinter properties file
run: |
cat > .dblinter/check.properties << EOF
workspace=${{ github.workspace }}
repoUrl=https://api.dblinter.app/
tenantName=UNITEDCODES
userName=${{ secrets.DBLINTER_USERNAME }}
accessToken=${{ secrets.DBLINTER_ACCESS_TOKEN }}
configName=Default
parallel=2
logLevel=Trace
logFile=${{ github.workspace }}/.dblinter/check.log
logFormat=ext3
outputFormats=github,sarif
outputName=${{ github.workspace }}/.dblinter/check
EOF
- name: Run dbLinter
run: |
java -jar dblinter/dblinter-cli.jar --options=.dblinter/check.properties check
- name: Output dbLinter annotations
run: cat .dblinter/check.github.txt
- name: Upload SARIF
uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: .dblinter/check.sarif.sarif