Skip to content

Commit

Permalink
Disable npm audit in CI, skip cloud npm install by default
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswilty committed Oct 22, 2024
1 parent 2bb09ca commit 731029b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/backend-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
cache-dependency-path: './backend/package-lock.json'
- name: Install dependencies
run: |
npm ci
npm ci --no-audit
- name: Run job
run: |
npx eslint .
Expand All @@ -58,7 +58,7 @@ jobs:
cache-dependency-path: './backend/package-lock.json'
- name: Install dependencies
run: |
npm ci
npm ci --no-audit
- name: Run job
run: |
npm run build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
cache-dependency-path: './cloud/package-lock.json'
- name: Install dependencies
run: |
npm ci
npm ci --no-audit
- name: Run job
run: |
npm run codecheck
4 changes: 2 additions & 2 deletions .github/workflows/frontend-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
cache-dependency-path: './frontend/package-lock.json'
- name: Install dependencies
run: |
npm ci
npm ci --no-audit
- name: Run job
run: |
npx eslint .
Expand All @@ -59,7 +59,7 @@ jobs:
cache-dependency-path: './frontend/package-lock.json'
- name: Install dependencies
run: |
npm ci
npm ci --no-audit
- name: Run job
run: |
npm run build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/k6-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
cache-dependency-path: './k6/package-lock.json'
- name: Install dependencies
run: |
npm ci
npm ci --no-audit
- name: Run job
run: |
npx eslint .
Expand Down
2 changes: 1 addition & 1 deletion cloud/lib/pipeline-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class PipelineStack extends Stack {
const pipeline = new CodePipeline(this, generateResourceId('pipeline'), {
synth: new ShellStep('Synth', {
input: sourceCode,
installCommands: ['npm ci'],
installCommands: ['npm ci', 'cd cloud', 'npm ci --no-audit', 'cd ..'],
commands: ['cd cloud', `npm run cdk:synth -- --context STAGE=${stage}`],
primaryOutputDirectory: 'cloud/cdk.out',
}),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"url": "https://github.com/ScottLogic/prompt-injection/issues"
},
"scripts": {
"postinstall": "concurrently \"cd backend && npm ci --no-audit\" \"cd frontend && npm ci --no-audit\" \"cd cloud && npm ci --no-audit\"",
"postinstall": "concurrently \"cd backend && npm ci --no-audit\" \"cd frontend && npm ci --no-audit\"",
"build": "concurrently \"cd backend && npm run build\" \"cd frontend && npm run build\"",
"start": "cd backend && npm start",
"docker:start": "docker compose up -d",
Expand Down

0 comments on commit 731029b

Please sign in to comment.