You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: action.yml
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -29,9 +29,17 @@ inputs:
29
29
required: false
30
30
default: "false"
31
31
policy:
32
-
description: "Policy name to be used from the policy store"
32
+
description: "Policy name to be used from the policy store. Requires id-token: write permission."
33
33
required: false
34
34
default: ""
35
+
api-key:
36
+
description: "StepSecurity API key for authenticating with the policy store. Required when use-policy-store is set to true."
37
+
required: false
38
+
default: ""
39
+
use-policy-store:
40
+
description: "Set to true to fetch policy from the policy store using the API key. This is the preferred method over the policy input which requires id-token: write permission. Policies can be defined and attached at workflow, repo, org, or cluster (for ARC) level in the policy store. The most granular policy will apply."
throw new Error("[PolicyStoreFetch]: api-key is empty");
85269
+
}
85270
+
let policyEndpoint = `${configs_STEPSECURITY_API_URL}/github/${owner}/${repo}/actions/policies/workflow-policy?workflow=${encodeURIComponent(workflow)}&run_id=${encodeURIComponent(runId)}&correlationId=${encodeURIComponent(correlationId)}`;
0 commit comments