Skip to content

Commit

Permalink
audit security vulnerabilities as part of ci (actions#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanmacfarlane authored Jan 3, 2020
1 parent 4e69ce1 commit 803934e
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 19 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,9 @@ jobs:

- name: Format
run: npm run format-check

- name: audit tools
run: npm audit --audit-level=moderate

- name: audit packages
run: npm run audit-all
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "root",
"private": true,
"scripts": {
"audit-all": "lerna run audit-moderate",
"bootstrap": "lerna bootstrap",
"build": "lerna run tsc",
"check-all": "concurrently \"npm:format-check\" \"npm:lint\" \"npm:test\" \"npm:build -- -- --noEmit\"",
Expand Down
1 change: 1 addition & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"directory": "packages/core"
},
"scripts": {
"audit-moderate": "npm install && npm audit --audit-level=moderate",
"test": "echo \"Error: run tests from root\" && exit 1",
"tsc": "tsc"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/exec/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/exec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"directory": "packages/exec"
},
"scripts": {
"audit-moderate": "npm install && npm audit --audit-level=moderate",
"test": "echo \"Error: run tests from root\" && exit 1",
"tsc": "tsc"
},
Expand Down
1 change: 1 addition & 0 deletions packages/github/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"directory": "packages/github"
},
"scripts": {
"audit-moderate": "npm install && npm audit --audit-level=moderate",
"test": "jest",
"build": "tsc",
"format": "prettier --write **/*.ts",
Expand Down
14 changes: 0 additions & 14 deletions packages/glob/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/glob/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"directory": "packages/glob"
},
"scripts": {
"audit-moderate": "npm install && npm audit --audit-level=moderate",
"test": "echo \"Error: run tests from root\" && exit 1",
"tsc": "tsc"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/io/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/io/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"directory": "packages/io"
},
"scripts": {
"audit-moderate": "npm install && npm audit --audit-level=moderate",
"test": "echo \"Error: run tests from root\" && exit 1",
"tsc": "tsc"
},
Expand Down
5 changes: 3 additions & 2 deletions packages/tool-cache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,16 @@
"directory": "packages/tool-cache"
},
"scripts": {
"audit-moderate": "npm install && npm audit --audit-level=moderate",
"test": "echo \"Error: run tests from root\" && exit 1",
"tsc": "tsc"
},
"bugs": {
"url": "https://github.com/actions/toolkit/issues"
},
"dependencies": {
"@actions/core": "^1.1.0",
"@actions/exec": "^1.0.1",
"@actions/core": "^1.2.0",
"@actions/exec": "^1.0.0",
"@actions/io": "^1.0.1",
"semver": "^6.1.0",
"typed-rest-client": "^1.4.0",
Expand Down

0 comments on commit 803934e

Please sign in to comment.