mirror of
https://github.com/aquasecurity/trivy.git
synced 2026-01-31 05:43:14 +08:00
feat(misconf): add action block to Terraform schema (#10035)
Signed-off-by: nikpivkin <nikita.pivkin@smartforce.io>
This commit is contained in:
@@ -42,6 +42,17 @@ moved {
|
||||
|
||||
}
|
||||
|
||||
action "aws_lambda_invoke" "example" {
|
||||
config {
|
||||
function_name = "123456789012:function:my-function:1"
|
||||
payload = jsonencode({
|
||||
key1 = "value1"
|
||||
key2 = "value2"
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
import {
|
||||
to = cats_cat.mittens
|
||||
id = "mittens"
|
||||
|
||||
@@ -46,6 +46,10 @@ var Schema = &hcl.BodySchema{
|
||||
Type: "ephemeral",
|
||||
LabelNames: []string{"type", "name"},
|
||||
},
|
||||
{
|
||||
Type: "action",
|
||||
LabelNames: []string{"type", "name"},
|
||||
},
|
||||
{
|
||||
Type: "moved",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user