Skip to content

Commit

Permalink
fix: get multiple parameters in task
Browse files Browse the repository at this point in the history
  • Loading branch information
artaasadi committed Dec 20, 2024
1 parent 79b0504 commit a180b46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion assets/tasks/container_grype_check.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ID: "container-vulnerability-scanner"
Name: "Container Vulnerability Scanner"
Description: "Check if all container artifacts are free of vulnerabilities"
ImageURL: "ghcr.io/opengovern/og-task-container-vulnerability:local-v0.0.57"
ImageURL: "ghcr.io/opengovern/og-task-container-vulnerability:local-v0.0.61"
Command: "/og-task-container-vulnerability"
ResultType: "oci_container_vulnerabilities"
WorkloadType: "deployment"
Expand Down
6 changes: 3 additions & 3 deletions pkg/cloudql/tables/table_platform_artifact_vulnerabilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ func tablePlatformArtifactVulnerabilities(_ context.Context) *plugin.Table {
Columns: []*plugin.Column{
{
Name: "image_url",
Transform: transform.FromQual("imageUrl"),
Transform: transform.FromField("imageUrl"),
Type: proto.ColumnType_STRING,
},
{
Name: "artifact_digest",
Transform: transform.FromQual("artifactDigest"),
Transform: transform.FromField("artifactDigest"),
Type: proto.ColumnType_STRING,
},
{
Name: "vulnerabilities",
Transform: transform.FromQual("Vulnerabilities"),
Transform: transform.FromField("Vulnerabilities"),
Type: proto.ColumnType_JSON,
},
},
Expand Down

0 comments on commit a180b46

Please sign in to comment.