checkov
checkov copied to clipboard
fix(terraform): Update FunctionAppsAccessibleOverHttps
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
Is there a test checking this? If not, can one be added based on the code snippet that failed before this fix?