Skip to content

Commit 41bb88f

Browse files
code-asheryiliang114
authored andcommitted
Remove unused audit-ci dependency
There is a `yarn ci` script which was using audit-ci but this does not appear to be called anywhere. The security worflow uses `yarn audit` and `npm audit` which seem fine enough anyway.
1 parent f75fc3a commit 41bb88f

File tree

7 files changed

+8
-188
lines changed

7 files changed

+8
-188
lines changed

.github/workflows/security.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ concurrency:
1919
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
2020

2121
jobs:
22-
audit-ci:
22+
audit:
2323
name: Audit node modules
2424
runs-on: ubuntu-latest
2525
timeout-minutes: 15

ci/README.md

-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ This directory contains scripts used for the development of code-server.
2424
- Runs unit tests.
2525
- [./ci/dev/test-e2e.sh](./dev/test-e2e.sh) (`yarn test:e2e`)
2626
- Runs end-to-end tests.
27-
- [./ci/dev/ci.sh](./dev/ci.sh) (`yarn ci`)
28-
- Runs `yarn fmt`, `yarn lint` and `yarn test`.
2927
- [./ci/dev/watch.ts](./dev/watch.ts) (`yarn watch`)
3028
- Starts a process to build and launch code-server and restart on any code changes.
3129
- Example usage in [./docs/CONTRIBUTING.md](../docs/CONTRIBUTING.md).

ci/dev/audit.sh

-12
This file was deleted.

ci/dev/ci.sh

-13
This file was deleted.

docs/SECURITY.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@ We use the following tools to help us stay on top of vulnerability mitigation.
1717
- Comprehensive vulnerability scanner that runs on PRs into the default
1818
branch and scans both our container image and repository code (see
1919
`trivy-scan-repo` and `trivy-scan-image` jobs in `build.yaml`)
20-
- [`audit-ci`](https://github.com/IBM/audit-ci)
21-
- Audits npm and Yarn dependencies in CI (see `Audit for vulnerabilities` step
22-
in `build.yaml`) on PRs into the default branch and fails CI if moderate or
23-
higher vulnerabilities (see the `audit.sh` script) are present.
20+
- `yarn audit` and `npm audit`
21+
- Audits Yarn/NPM dependencies.
2422

2523
## Supported Versions
2624

package.json

-3
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,10 @@
2727
"postinstall": "./ci/dev/postinstall.sh",
2828
"publish:npm": "./ci/steps/publish-npm.sh",
2929
"publish:docker": "./ci/steps/docker-buildx-push.sh",
30-
"_audit": "./ci/dev/audit.sh",
3130
"fmt": "yarn prettier && ./ci/dev/doctoc.sh",
3231
"lint:scripts": "./ci/dev/lint-scripts.sh",
3332
"lint:ts": "eslint --max-warnings=0 --fix $(git ls-files '*.ts' '*.js' | grep -v 'lib/vscode')",
3433
"test": "echo 'Run yarn test:unit or yarn test:e2e' && exit 1",
35-
"ci": "./ci/dev/ci.sh",
3634
"watch": "VSCODE_DEV=1 VSCODE_IPC_HOOK_CLI= NODE_OPTIONS='--max_old_space_size=32384 --trace-warnings' ts-node ./ci/dev/watch.ts",
3735
"icons": "./ci/dev/gen_icons.sh"
3836
},
@@ -53,7 +51,6 @@
5351
"@types/ws": "^8.5.5",
5452
"@typescript-eslint/eslint-plugin": "^7.0.0",
5553
"@typescript-eslint/parser": "^6.7.2",
56-
"audit-ci": "^6.6.1",
5754
"doctoc": "^2.2.1",
5855
"eslint": "^8.49.0",
5956
"eslint-config-prettier": "^9.0.0",

0 commit comments

Comments
 (0)