From 724a178312d6a81b1dd339673e659431ea56edbd Mon Sep 17 00:00:00 2001 From: cmendible <266546+cmendible@users.noreply.github.com> Date: Wed, 8 Feb 2023 15:22:49 +0100 Subject: [PATCH] Validatading AccessTier #28 --- internal/scanners/st.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/internal/scanners/st.go b/internal/scanners/st.go index 7d7155db..ab51ab09 100644 --- a/internal/scanners/st.go +++ b/internal/scanners/st.go @@ -47,7 +47,12 @@ func (c *StorageScanner) Scan(resourceGroupName string) ([]IAzureServiceResult, } sku := string(*storage.SKU.Name) - tier := string(*storage.Properties.AccessTier) + tier := "" + if storage.Properties != nil { + if storage.Properties.AccessTier != nil { + tier = string(*storage.Properties.AccessTier) + } + } zones := false if strings.Contains(sku, "ZRS") { zones = true