Skip to content

Commit

Permalink
separate audit workflow (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsciple authored May 7, 2020
1 parent a5ff692 commit 83dd3ef
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 9 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 0 additions & 8 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>


Expand Down

0 comments on commit 83dd3ef

Please sign in to comment.