You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/ci.yml
+17-2Lines changed: 17 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,7 @@
1
1
name: CI
2
+
on:
3
+
push:
4
+
branches: [main]
2
5
on: push:
3
6
branches: [main]
4
7
pull_request:
@@ -21,7 +24,7 @@ jobs:
21
24
bun-version: "1.x"
22
25
23
26
- name: Install dependencies
24
-
run: bun install --frozen-lockfile
27
+
run: bun install
25
28
26
29
- name: Check lockfiles are in sync
27
30
run: |
@@ -30,7 +33,7 @@ jobs:
30
33
cp package-lock.json package-lock.json.orig
31
34
npm install --package-lock-only --ignore-scripts
32
35
if ! diff -q package-lock.json package-lock.json.orig >/dev/null 2>&1; then
33
-
echo "::error::package-lock.json is out of sync with package.json. Run 'npm install' locally after any 'bun add / bun update' and commit the updated lockfile."
36
+
echo "::error::package-lock.json is out of sync with package.json. Run 'npm install' locally after any 'bun ad / bun update' and commit the updated lockfile."
34
37
diff -u package-lock.json.orig package-lock.json | head -n 200 || true
35
38
mv package-lock.json.orig package-lock.json
36
39
exit 1
@@ -39,6 +42,18 @@ jobs:
39
42
rm package-lock.json.orig
40
43
fi
41
44
45
+
- name: Check for insecure TLS configuration
46
+
run: |
47
+
if [ ! -f src/knexfile.ts ]; then
48
+
echo "::error::src/knexfile.ts not found."
49
+
exit 1
50
+
fi
51
+
if grep -q "rejectUnauthorized: false" src/knexfile.ts; then
52
+
echo "::error::Found insecure TLS configuration (rejectUnauthorized: false) in src/knexfile.ts. Use a proper CA certificate instead."
0 commit comments