forked from grandcolline/golang-github-actions
-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
40 lines (40 loc) · 1.03 KB
/
action.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
name: "static analysis checker"
description: "static code analysis checker for golang"
author: "grandcolline"
inputs:
run:
description: "excute command. [errcheck/fmt/imports/lint/sec/shadow/staticcheck/vet]"
required: true
directory:
description: "action wroking directory."
default: "."
required: false
comment:
description: "send comment to PR if true."
default: true
required: false
token:
description: "github token. this is require when comment is true."
default: ""
required: false
flags:
description: "add flags"
default: ""
required: false
ignore-defer:
description: "if this is true, do not detect 'defer' with error. This is only valid when run is errcheck."
default: false
required: false
runs:
using: "docker"
image: "Dockerfile"
args:
- ${{ inputs.run }}
- ${{ inputs.directory }}
- ${{ inputs.comment }}
- ${{ inputs.token }}
- ${{ inputs.flags }}
- ${{ inputs.ignore-defer }}
branding:
icon: "alert-triangle"
color: "yellow"