* 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
15 lines
362 B
YAML
15 lines
362 B
YAML
name: 'npm audit action'
|
|
description: 'run npm audit'
|
|
author: 'Naoki Oketani <okepy.naoki@gmail.com>'
|
|
inputs:
|
|
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'
|