-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
37 lines (37 loc) · 1.09 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
name: 'listen.dev policy'
author: 'Garnet Labs'
description: 'Control the behavior of your dependencies in CI using listen.dev'
inputs:
lstn-command:
description: 'The lstn command to run'
default: 'scan'
workdir:
description: 'The input directory for the project'
default: '.'
lstn-params:
description: 'Additional parameters to pass to lstn'
rules-file:
description: 'The yaml file containing the lstn rules to enforce policy'
default: 'rules.yml'
rule-name:
description: 'The name of the rule to enforce'
default: 'ignore_priority_medium'
apply-policy:
description: 'Whether to enforce lstn policy or not'
default: 'true'
branding:
color: "green"
icon: "docs/garnet-logo.png"
runs:
using: 'docker'
image: 'docker://garnetlabs/lstn:0.3.0-action'
entrypoint: '/docker-entrypoint.sh'
args:
# - lstn
- ${{ inputs.lstn-command }}
- ${{ inputs.workdir }}
- ${{ inputs.lstn-args }}
env:
INPUT_APPLY_POLICY: ${{ inputs.apply-policy }}
INPUT_RULES_FILE: ${{ inputs.rules-file }}
INPUT_RULE_NAME: ${{ inputs.rule-name }}