Skip to content

Commit

Permalink
Merge pull request #7017 from Checkmarx/fix-typos
Browse files Browse the repository at this point in the history
fix(query): fix typos
  • Loading branch information
gabriel-cx authored Apr 24, 2024
2 parents 9f4e246 + 10ef98b commit 5674564
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ CxPolicy[result] {
storageAccount := task[modules[index]]
ansLib.checkState(storageAccount)

res1 := publicNetwokAccessEnabled(storageAccount)
res1 := publicNetworkAccessEnabled(storageAccount)
res2 := aclsDefaultActionAllow(storageAccount)

issue := prepare_issue(res1, res2)
Expand All @@ -25,7 +25,7 @@ CxPolicy[result] {
}
}

publicNetwokAccessEnabled(sa) = reason {
publicNetworkAccessEnabled(sa) = reason {
not sa.public_network_access
reason := "not defined"
} else = reason {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ CxPolicy[result] {

value.type == "Microsoft.Storage/storageAccounts"

res1 := publicNetwokAccessEnabled(value.properties)
res1 := publicNetworkAccessEnabled(value.properties)
res2 := aclsDefaultActionAllow(value.properties)

issue := prepare_issue(res1, res2)
Expand All @@ -25,7 +25,7 @@ CxPolicy[result] {
}
}

publicNetwokAccessEnabled(properties) = reason {
publicNetworkAccessEnabled(properties) = reason {
not properties.publicNetworkAccess
reason := "not defined"
} else = reason {
Expand Down
4 changes: 0 additions & 4 deletions pkg/scan/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,6 @@ func (c *Client) executeScan(ctx context.Context) (*Results, error) {

failedQueries := executeScanParameters.inspector.GetFailedQueries()

if err != nil {
return nil, err
}

results, err := c.Storage.GetVulnerabilities(ctx, c.ScanParams.ScanID)
if err != nil {
log.Err(err)
Expand Down

0 comments on commit 5674564

Please sign in to comment.