-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
26 lines (26 loc) · 1.07 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
name: 'Action Policy'
description: 'Checks the workflow yaml files for references to actions contained in a provided list'
author: '[email protected]'
branding:
icon: check-circle
color: green
inputs:
policy:
required: true
description: 'Set to either `allow` or `prohibit`. When allow is the policy, any actions not on the list will be in violation. When prohibit is the policy, any actions on the list will be in violation.'
policy-url:
required: true
description: 'The url to a publicly available json file containing a list of allowed or prohibited actions.'
fail-if-violations:
required: false
default: 'true'
description: 'True to set the status of the action to Failed if violations occur. Set to false to allow downstream actions to execute. Defaults to true.'
github-token:
required: true
description: 'Your GitHub token to access the files in the commits tied to the push or puill request.'
outputs:
results:
description: 'A list of any actions breaking the provided policy rules.'
runs:
using: 'node12'
main: 'dist/index.js'