Skip to content

Commit

Permalink
Update all echo to transform steps
Browse files Browse the repository at this point in the history
  • Loading branch information
cbruno10 committed Dec 5, 2023
1 parent 000e71f commit 5d20547
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lookup_iocs/lookup_file_hash.fp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ pipeline "lookup_file_hash" {
request_body = "hash=${param.file_hash}"
}

step "echo" "lookup_file_hash" {
step "transform" "lookup_file_hash" {
json = {
virustotal_file_scan : step.pipeline.virustotal.output.file_analysis.data,
urlscan_file_scan : step.pipeline.urlscan.output.scan_result,
Expand All @@ -71,4 +71,4 @@ pipeline "lookup_file_hash" {
hybrid_analysis_file_hash_lookup : step.http.hybrid_analysis_file_hash_lookup.response_body
}
}
}
}
2 changes: 1 addition & 1 deletion report_inactive_okta_accounts/deactivate_okta_user.fp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pipeline "deactivate_okta_accounts" {
}
}

step "echo" "condition_info" {
step "transform" "condition_info" {
for_each = { for user in step.pipeline.list_users.output.users : user.id => user }
text = "${timecmp(each.value.lastLogin, timeadd(timestamp(), "-${param.inactive_hours}h"))} user ${each.value.profile.email} lastlogin ${each.value.lastLogin} status ${each.value.status}"
}
Expand Down

0 comments on commit 5d20547

Please sign in to comment.