Skip to content

Commit

Permalink
Update scanner.go
Browse files Browse the repository at this point in the history
  • Loading branch information
liamg authored and owenrumney committed Nov 10, 2021
1 parent ba06a34 commit 6a096d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/app/tfsec/scanner/scanner.go
Expand Up @@ -90,7 +90,7 @@ func (scanner *Scanner) scanModule(module block.Module, rules []rule.Rule) []res
ruleResult.Severity = r.DefaultSeverity
}
if reference := checkBlock.Reference(); reference != nil {
ruleResult.Resource = checkBlock.Reference().String()
ruleResult.Resource = reference.String()
}
if len(scanner.includedRuleIDs) == 0 || len(scanner.includedRuleIDs) > 0 && checkInList(ruleResult.RuleID, ruleResult.LegacyRuleID, scanner.includedRuleIDs) {
if !scanner.includeIgnored && (ruleResult.IsIgnored(scanner.workspaceName) || checkInList(ruleResult.RuleID, ruleResult.LegacyRuleID, scanner.excludedRuleIDs)) {
Expand Down

0 comments on commit 6a096d3

Please sign in to comment.