-
Notifications
You must be signed in to change notification settings - Fork 38
48 lines (43 loc) · 1.06 KB
/
audit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: NPM Audit
concurrency:
group: ci-${{ github.ref }}-${{ inputs.ref }}-audit
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
on:
workflow_call:
inputs:
ref:
type: string
default: ''
description: The branch, tag or SHA to checkout.
push:
branches:
- main
- 'release/*'
pull_request:
branches:
- main
- 'release/*'
merge_group:
types: [checks_requested]
permissions:
contents: read
jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: ${{ inputs.ref }}
- name: Setup
uses: ./tools/github-actions/setup
- name: Audit
id: audit
uses: ./tools/github-actions/audit
with:
severity: critical
allWorkspaces: true
recursive: true
environment: all
- name: Summary
if: success() || failure()
run: echo "${{ steps.audit.outputs.reportMarkdown }}" >> $GITHUB_STEP_SUMMARY