File tree 6 files changed +198
-4
lines changed
6 files changed +198
-4
lines changed Original file line number Diff line number Diff line change 27
27
with :
28
28
args : ./ci/steps/lint.sh
29
29
30
+ audit :
31
+ runs-on : ubuntu-latest
32
+ steps :
33
+ - uses : actions/checkout@v2
34
+ - name : Audit for vulnerabilities
35
+ uses : ./ci/images/debian10
36
+ with :
37
+ args : ./ci/steps/audit.sh
38
+
30
39
test-unit :
31
40
runs-on : ubuntu-latest
32
41
steps :
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ main () {
5
+ cd " $( dirname " $0 " ) /../.."
6
+
7
+ # Prevents integration with moderate or higher vulnerabilities
8
+ # Docs: https://github.com/IBM/audit-ci#options
9
+ yarn audit-ci --moderate
10
+ }
11
+
12
+ main " $@ "
Original file line number Diff line number Diff line change 6
6
7
7
yarn fmt
8
8
yarn lint
9
+ yarn _audit
9
10
yarn test:unit
10
11
}
11
12
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ main () {
5
+ cd " $( dirname " $0 " ) /../.."
6
+
7
+ yarn --frozen-lockfile
8
+
9
+ yarn _audit
10
+ }
11
+
12
+ main " $@ "
Original file line number Diff line number Diff line change 24
24
"postinstall" : " ./ci/dev/postinstall.sh" ,
25
25
"update:vscode" : " ./ci/dev/update-vscode.sh" ,
26
26
"_____" : " " ,
27
+ "_audit" : " ./ci/dev/audit.sh" ,
27
28
"fmt" : " ./ci/dev/fmt.sh" ,
28
29
"lint" : " ./ci/dev/lint.sh" ,
29
30
"test" : " echo 'Run yarn test:unit or yarn test:e2e' && exit 1" ,
54
55
"@types/wtfnode" : " ^0.7.0" ,
55
56
"@typescript-eslint/eslint-plugin" : " ^4.7.0" ,
56
57
"@typescript-eslint/parser" : " ^4.7.0" ,
58
+ "audit-ci" : " ^3.1.1" ,
57
59
"doctoc" : " ^2.0.0" ,
58
60
"eslint" : " ^7.7.0" ,
59
61
"eslint-config-prettier" : " ^8.1.0" ,
You can’t perform that action at this time.
0 commit comments