forked from u485349-coder/OpenFoundry
-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (40 loc) · 1.06 KB
/
Copy pathsql-lint.yml
File metadata and controls
42 lines (40 loc) · 1.06 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
name: CI — SQL Sprintf lint
on:
push:
branches: [main]
paths:
- "services/connector-management-service/**/*.go"
- "tools/sql-lint/**"
- ".sqlsafe-allowlist.txt"
- ".github/workflows/sql-lint.yml"
- "go.mod"
- "go.sum"
pull_request:
branches: [main]
paths:
- "services/connector-management-service/**/*.go"
- "tools/sql-lint/**"
- ".sqlsafe-allowlist.txt"
- ".github/workflows/sql-lint.yml"
- "go.mod"
- "go.sum"
jobs:
sql-lint:
name: sql-sprintf lint
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
cache-dependency-path: go.sum
- name: Run sql-lint unit tests
run: go test ./tools/sql-lint/...
- name: Scan connector adapters
run: |
go run ./tools/sql-lint \
-allowlist .sqlsafe-allowlist.txt \
-v \
services/connector-management-service/internal/adapters