Skip to content

Commit 7605141

Browse files
committed
fixing linting commands and making workflow ignore unpatched libraries on scanning
1 parent 924d986 commit 7605141

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

.audit-ci.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"moderate": true,
3+
"high": true,
4+
"critical": true,
5+
"advisories": ["1096727"],
6+
"allowlist": {
7+
"1096727": {
8+
"reason": "request package - SSRF vulnerability but no patch available. Used by octonode dependency.",
9+
"expiry": "2025-12-31"
10+
}
11+
},
12+
"report-type": "full",
13+
"output-format": "text",
14+
"skip-dev": false
15+
}

.github/workflows/build-images.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
run: yarn install --frozen-lockfile
6161

6262
- name: Run dependency security audit
63-
run: yarn audit --groups dependencies --level moderate
63+
run: yarn security:audit
6464

6565
- name: Run detect-secrets
6666
run: |
@@ -90,10 +90,10 @@ jobs:
9090
run: yarn install --frozen-lockfile
9191

9292
- name: Run linting for ${{ matrix.app }}
93-
run: turbo run lint --filter=${{ matrix.app }}
93+
run: yarn lint --filter=${{ matrix.app }} --fix
9494

9595
- name: Run tests for ${{ matrix.app }}
96-
run: turbo run test --filter=${{ matrix.app }} -- --coverage --watchAll=false
96+
run: yarn test --filter=${{ matrix.app }} -- --coverage --watchAll=false
9797

9898
- name: Upload coverage reports to Codecov
9999
uses: codecov/codecov-action@v4

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
"secrets:check": "scripts/detect-secrets.sh",
3838
"secrets:check:staged": "scripts/detect-secrets-staged.sh",
3939
"secrets:setup": "detect-secrets scan --update .secrets.baseline",
40+
"security:audit": "audit-ci --config .audit-ci.json",
41+
"security:audit-better": "better-npm-audit audit --level moderate",
4042
"seed:update": "turbo run seed:update --filter=api",
4143
"setup": "[ -d \"$(git rev-parse --show-toplevel)/apps/api\" ] && cd \"$(git rev-parse --show-toplevel)/apps/api\" && dotenv -e ./dev.env -- npx prisma migrate dev && npx prisma generate; cd $(git rev-parse --show-toplevel)",
4244
"setup:no-git": "cd ./apps/api && dotenv -e ./dev.env -- npx prisma migrate dev && npx prisma generate; cd ../../",
@@ -96,6 +98,8 @@
9698
"zod": "^3.23.5"
9799
},
98100
"devDependencies": {
101+
"audit-ci": "^7.1.0",
102+
"better-npm-audit": "^3.8.0",
99103
"detect-secrets": "^1.0.6",
100104
"dotenv-cli": "^8.0.0",
101105
"prettier": "^3.5.3",

0 commit comments

Comments
 (0)