Open a GitHub Issue if vulnerabilities are found (#8)
* Get GitHub access token from input * install npm package * fix TypeScript error to successfully build ref: https://github.com/actions/toolkit/issues/199 * npm i strip-ansi to remove control characters * create an issue * use template literal to pass lint * npm run format; npm run lint * use inputs.issue_title as issue title * document inputs.issue_title * add inputs.issue_title
This commit is contained in:
10
action.yml
10
action.yml
@@ -2,9 +2,13 @@ name: 'npm audit action'
|
||||
description: 'run npm audit'
|
||||
author: 'Naoki Oketani <okepy.naoki@gmail.com>'
|
||||
inputs:
|
||||
myInput: # change this
|
||||
description: 'input description here'
|
||||
default: 'default value if applicable'
|
||||
token:
|
||||
description: 'GitHub access token used to create an issue'
|
||||
required: true
|
||||
issue_title:
|
||||
description: 'Issue title'
|
||||
default: 'npm audit found vulnerabilities'
|
||||
required: false
|
||||
runs:
|
||||
using: 'node12'
|
||||
main: 'dist/index.js'
|
||||
|
||||
Reference in New Issue
Block a user