checkov icon indicating copy to clipboard operation
checkov copied to clipboard

fix(terraform): Update FunctionAppsAccessibleOverHttps

Open ihortelanog opened this issue 8 months ago • 1 comments

Crash with policy CKV_AZURE_70 #6492

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Description

This fix solved the issue Crash with policy CKV_AZURE_70 #6492

Fixes # 6492

New/Edited policies (Delete if not relevant)

Description

This error occurs because the keys() method is being executed on a non-dictionary value.

Fix

How does someone fix the issue in code and/or in runtime?

Checklist:

  • [ x] I have performed a self-review of my own code
  • [ x] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [ ] I have added tests that prove my feature, policy, or fix is effective and works
  • [ ] New and existing tests pass locally with my changes

ihortelanog avatar Apr 01 '25 14:04 ihortelanog

Is there a test checking this? If not, can one be added based on the code snippet that failed before this fix?

maxamel avatar Apr 06 '25 11:04 maxamel