mirror of https://github.com/actions/toolkit
separate audit workflow (#450)
parent
a5ff692285
commit
83dd3ef0f1
|
@ -0,0 +1,38 @@
|
|||
name: toolkit-audit
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
name: Audit
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set Node.js 12.x
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12.x
|
||||
|
||||
- name: npm install
|
||||
run: npm install
|
||||
|
||||
- name: Bootstrap
|
||||
run: npm run bootstrap
|
||||
|
||||
- name: audit tools
|
||||
run: npm audit --audit-level=moderate
|
||||
|
||||
- name: audit packages
|
||||
run: npm run audit-all
|
|
@ -49,11 +49,3 @@ jobs:
|
|||
|
||||
- name: Format
|
||||
run: npm run format-check
|
||||
|
||||
- name: audit tools
|
||||
run: npm audit --audit-level=moderate
|
||||
if: matrix.runs-on == 'ubuntu-latest'
|
||||
|
||||
- name: audit packages
|
||||
run: npm run audit-all
|
||||
if: matrix.runs-on == 'ubuntu-latest'
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://github.com/actions/toolkit"><img alt="GitHub Actions status" src="https://github.com/actions/toolkit/workflows/toolkit-unit-tests/badge.svg"></a>
|
||||
<a href="https://github.com/actions/toolkit/actions?query=workflow%3Atoolkit-unit-tests"><img alt="Toolkit unit tests status" src="https://github.com/actions/toolkit/workflows/toolkit-unit-tests/badge.svg"></a>
|
||||
<a href="https://github.com/actions/toolkit/actions?query=workflow%3Atoolkit-audit"><img alt="Toolkit audit status" src="https://github.com/actions/toolkit/workflows/toolkit-audit/badge.svg"></a>
|
||||
</p>
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue