Skip to content

Conversation

@GeekMasher
Copy link
Contributor

@github-actions
Copy link

github-actions bot commented Sep 24, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Copilot AI review requested due to automatic review settings September 8, 2025 17:43
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds initial support for Azure Storage Account resources to the codeql-hcl library, expanding beyond the existing managed disk and storage container coverage. The changes enable security analysis of Azure Storage Accounts by detecting public access configurations across different provider versions.

Key changes:

  • Added Azure Storage Account support with comprehensive property parsing for v2 and v3 provider versions
  • Refactored existing Azure resource definitions into modular, domain-specific files
  • Enhanced the PublicStorage security query to detect insecure storage account configurations

Reviewed Changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
ql/lib/codeql/hcl/providers/azure/Storage.qll New dedicated module containing all Azure storage-related resources including StorageAccount, StorageContainer, and ManagedDisk
ql/lib/codeql/hcl/security/PublicStorage.qll New security library defining AzurePublicStorage class to detect public storage configurations
ql/src/security/Terraform/Azure/ManagedDisk/PublicAccess.ql Updated query to use the new PublicStorage library for broader Azure storage security coverage
ql/lib/codeql/hcl/providers/Azure.qll Refactored to import modular Azure service definitions instead of containing all classes directly
ql/lib/codeql/hcl/Terraform.qll Added semantic version support for provider version comparison

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

account_kind = "BlobStorage"
account_tier = "Standard"
account_replication_type = "GRS"
resource_group_name = azurerm_resource_group.example
Copy link

Copilot AI Sep 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The resource_group_name attribute should reference azurerm_resource_group.example.name instead of the resource object itself.

Copilot uses AI. Check for mistakes.
account_kind = "BlobStorage"
account_tier = "Standard"
account_replication_type = "GRS"
resource_group_name = azurerm_resource_group.example
Copy link

Copilot AI Sep 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The resource_group_name attribute should reference azurerm_resource_group.example.name instead of the resource object itself.

Copilot uses AI. Check for mistakes.
account_kind = "BlobStorage"
account_tier = "Standard"
account_replication_type = "GRS"
resource_group_name = azurerm_resource_group.example
Copy link

Copilot AI Sep 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The resource_group_name attribute should reference azurerm_resource_group.example.name instead of the resource object itself.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants