GeekMasher/advanced-security-compliance

PaC - Disabling Policy Blocks when no specified

Closed this issue · 0 comments

Describe the bug

When a block like Secret Scanning is not present and no check will be performed, the engine shouldn't request those endpoints and perform the tests in the first place. This should act the same as disabling a check using the CLI

To Reproduce
Steps to reproduce the behavior:

  1. Create a policy without secretscanning block
  2. See that the API and block is still ran

Expected behavior

This block shouldn't be checked