-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when applying automation with multiple results #116
Comments
for additional context, this issue is also encountered when configuring an automation resource to carry out more than 1 action. resource "orcasecurity_automation" "dismiss_detected_expired_secret" {
name = "Dismiss Detected Expired Secret"
description = "An expired secret or credential has been detected, which can be safely ignored / dismissed."
enabled = false
query = {
"filter": [
{ "field": "state.status", "includes": ["open"] },
{ "field": "asset_type_string", "includes": ["CodeRepository"] },
{ "field": "asset_labels", "includes": ["shiftleft:secret_detection","validity_status:expired"] }
]
}
alert_dismissal_details = {
reason = "Acceptable risk"
justification = "Secret or Credential is no longer valid as it's expired, it can safely be ignored."
}
// EMAIL NOTIFICATION
email_template = {
email = ["[email protected]"]
multi_alerts = true
}
} Error: |
Thank you for pointing this out! Let me investigate this and push a PR if there's a bug, and also to allow you to implement 2 actions for one automation. Apologies for the inconvenience. |
Hi,
Receive the following
terraform apply
error when my automation resource contains a jira_cloud_template & email_template.Error:
│ Error: Error updating Automation
│ with orcasecurity_automation.detected_malicious_or_suspicious_activity,
│ on orcasecurity_automation.tf line 5, in resource "orcasecurity_automation" "detected_malicious_or_suspicious_activity":
│ 5: resource "orcasecurity_automation" "detected_malicious_or_suspicious_activity" {
│
│ Could not update Automation, unexpected error: 0::API returned error - status: 400, body: {"status":"failure","error":"Additional properties are not allowed ('template' was unexpected)"}, error: Additional properties are not allowed ('template' was unexpected)
Terraform Version
Terraform: v1.10.3
orca provider: v0.0.18
Affected Resource(s)
Terraform Configuration Files
The text was updated successfully, but these errors were encountered: