Improvements to Dependency and SemanticVersion classes:
ql/lib/codeql/iac/Dependencies.qll: Modified the Dependency class to use getSemanticVersion().getPretty() for fetching version information and added methods to retrieve raw and semantic versions. Enhanced the SemanticVersion class with new properties and predicates for better version comparison and normalization.
Improvements to Dependency and SemanticVersion classes:
ql/lib/codeql/iac/Dependencies.qll
: Modified theDependency
class to usegetSemanticVersion().getPretty()
for fetching version information and added methods to retrieve raw and semantic versions. Enhanced theSemanticVersion
class with new properties and predicates for better version comparison and normalization.Updates to test files:
ql/test/library-tests/hcl/terraform/Dependencies.expected
: Added new entries to test the semantic versioning of dependencies.ql/test/library-tests/hcl/terraform/Dependencies.ql
: Introduced a new query predicatesemver
to validate the semantic versioning functionality.