Skip to content

Commit 731029b

Browse files
committed
Disable npm audit in CI, skip cloud npm install by default
1 parent 2bb09ca commit 731029b

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

.github/workflows/backend-checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
cache-dependency-path: './backend/package-lock.json'
3535
- name: Install dependencies
3636
run: |
37-
npm ci
37+
npm ci --no-audit
3838
- name: Run job
3939
run: |
4040
npx eslint .
@@ -58,7 +58,7 @@ jobs:
5858
cache-dependency-path: './backend/package-lock.json'
5959
- name: Install dependencies
6060
run: |
61-
npm ci
61+
npm ci --no-audit
6262
- name: Run job
6363
run: |
6464
npm run build

.github/workflows/cloud.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
cache-dependency-path: './cloud/package-lock.json'
3636
- name: Install dependencies
3737
run: |
38-
npm ci
38+
npm ci --no-audit
3939
- name: Run job
4040
run: |
4141
npm run codecheck

.github/workflows/frontend-checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
cache-dependency-path: './frontend/package-lock.json'
3535
- name: Install dependencies
3636
run: |
37-
npm ci
37+
npm ci --no-audit
3838
- name: Run job
3939
run: |
4040
npx eslint .
@@ -59,7 +59,7 @@ jobs:
5959
cache-dependency-path: './frontend/package-lock.json'
6060
- name: Install dependencies
6161
run: |
62-
npm ci
62+
npm ci --no-audit
6363
- name: Run job
6464
run: |
6565
npm run build

.github/workflows/k6-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
cache-dependency-path: './k6/package-lock.json'
3434
- name: Install dependencies
3535
run: |
36-
npm ci
36+
npm ci --no-audit
3737
- name: Run job
3838
run: |
3939
npx eslint .

cloud/lib/pipeline-stack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class PipelineStack extends Stack {
6161
const pipeline = new CodePipeline(this, generateResourceId('pipeline'), {
6262
synth: new ShellStep('Synth', {
6363
input: sourceCode,
64-
installCommands: ['npm ci'],
64+
installCommands: ['npm ci', 'cd cloud', 'npm ci --no-audit', 'cd ..'],
6565
commands: ['cd cloud', `npm run cdk:synth -- --context STAGE=${stage}`],
6666
primaryOutputDirectory: 'cloud/cdk.out',
6767
}),

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"url": "https://github.com/ScottLogic/prompt-injection/issues"
1919
},
2020
"scripts": {
21-
"postinstall": "concurrently \"cd backend && npm ci --no-audit\" \"cd frontend && npm ci --no-audit\" \"cd cloud && npm ci --no-audit\"",
21+
"postinstall": "concurrently \"cd backend && npm ci --no-audit\" \"cd frontend && npm ci --no-audit\"",
2222
"build": "concurrently \"cd backend && npm run build\" \"cd frontend && npm run build\"",
2323
"start": "cd backend && npm start",
2424
"docker:start": "docker compose up -d",

0 commit comments

Comments
 (0)