generated from actions/javascript-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
42 lines (41 loc) · 1.28 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
41
42
name: Check SGNL Policy
author: SGNL.ai, Inc
description: Calls SGNL for a policy check. Also see https://developer.sgnl.ai/
inputs:
domain:
required: true
description: The SGNL API hostname.
default: access.sgnlapis.cloud
token:
required: true
description:
The authentication token used to make calls to the SGNL access API
principalId:
required: true
description:
The identity of the principal executing this action. Typically a github
username or email address.
assetId:
required: false
description:
The identifier of an asset for this policy check. Typically the repo from
the action. At least one of 'assetId' or 'action' is required.
action:
required: false
description:
An optional action to pass to SGNL. At least one of 'assetId' or 'action'
is required.
bypassMode:
required: true
description:
Don't actually call SGNL, instead always return Allow. ~~WARNING~~ Setting
this to true will disable using SGNL. Use for testing or break glass only.
default: false
outputs:
reason:
description: Any decision reason output from the policy evaluation.
decision:
description: Policy decision as a boolean. (true = Allow, false = Deny)
runs:
using: node20
main: dist/index.js