Skip to content

Commit

Permalink
Merge pull request #517 from gaurav-gogia/fix_405
Browse files Browse the repository at this point in the history
fixes #405
  • Loading branch information
cesar-rodriguez committed Jan 28, 2021
2 parents 31bd625 + 4eb3d33 commit 47d55e0
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,13 @@ package accurics

{{.prefix}}checkStorageContainerAccess[storage_container.id] {
storage_container := input.azurerm_storage_container[_]
storage_container.config.container_access_type != "private"
not checkAccessType(storage_container.config.container_access_type)
}

checkAccessType(accesstype) {
contains(accesstype, "private")
}

checkAccessType(accesstype) {
contains(accesstype, "PRIVATE")
}

0 comments on commit 47d55e0

Please sign in to comment.