This commit is contained in:
parent
4dd3902987
commit
74c5e0b526
1 changed files with 2 additions and 16 deletions
|
@ -4,19 +4,5 @@ jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Status
|
||||||
uses: actions/checkout@v4
|
- run: git status
|
||||||
- uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version-file: ".nvmrc"
|
|
||||||
cache: "npm"
|
|
||||||
- name: Installing dependencies
|
|
||||||
run: npm i
|
|
||||||
- name: Run security audit
|
|
||||||
run: |
|
|
||||||
echo "Running security audit check"
|
|
||||||
npx --yes better-npm-audit audit || {
|
|
||||||
echo "Security audit failed!"
|
|
||||||
exit 1
|
|
||||||
}
|
|
||||||
echo "Security audit passed!"
|
|
Loading…
Add table
Reference in a new issue