Files
npm-audit-action/action.yml
sgkiokas 42e6d27a29 feat: add the ability to run with '--production' (#75)
* feat: add the ability to run with '--production'

Adding the config options to run npm audit with the --production flag.

Contributes to: #74

Signed-off-by: Stelios Gkiokas <s_giokas@hotmail.com>

* fix: add tests

Adding the relevant tests for the new production flag.

Contributes to: #74

Signed-off-by: Stelios Gkiokas <s_giokas@hotmail.com>
2020-11-12 19:33:56 +09:00

43 lines
1.1 KiB
YAML

name: 'npm audit action'
description: 'run npm audit'
author: 'Naoki Oketani <okepy.naoki@gmail.com>'
inputs:
audit_level:
description: 'The value of `--audit-level` flag'
default: low
required: false
production_flag:
description: 'Run npm audit with --production'
default: 'false'
required: false
github_context:
description: 'The `github` context'
default: ${{ toJson(github) }}
required: false
github_token:
description: 'GitHub access token used to create an issue'
required: true
issue_assignees:
description: 'Issue assignees (separated by commma)'
required: false
issue_labels:
description: 'Issue assignees (separated by commma)'
required: false
issue_title:
description: 'Issue title'
default: 'npm audit found vulnerabilities'
required: false
working_directory:
description: 'The directory which contains package.json (since v1.4.0)'
required: false
dedupe_issues:
description: 'Flag to de-dupe against open issues'
default: 'false'
required: false
runs:
using: 'node12'
main: 'dist/index.js'
branding:
icon: 'search'
color: 'orange'