Skip to content

Commit 52a1eba

Browse files
committed
updating step functions to filter different types
1 parent ba54b2f commit 52a1eba

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

stepfunctions/secretscanner.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
11
Comment: >-
22
A state machine that coordinates the remediation of security findings from GitHub Secret Scanning
3-
StartAt: Get Secret Details
3+
StartAt: Filter Action Type
44
States:
5+
Filter Action Type:
6+
Type: Choice
7+
Choices:
8+
- Variable: "$.action"
9+
StringEquals: "created"
10+
Next: Get Secret Details
11+
- Variable: "$.action"
12+
StringEquals: "resolved"
13+
Next: Success State
14+
- Variable: "$.action"
15+
StringEquals: "reopened"
16+
Next: Success State
17+
Default: Success State
518
Get Secret Details:
619
Type: Task
720
Resource: "${GetSecretDetailsFunctionArn}"

0 commit comments

Comments
 (0)