Skip to content

Commit

Permalink
Move exclusions into the FullScan.yml.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahelsaig committed Aug 23, 2024
1 parent bc5900f commit 387ae20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ env:
- name: Default Context
urls:
- <start URL>
excludePaths: []
excludePaths:
# Don't inspect any part of the Admin dashboard or the testing-exclusive Lombiq.Tests.UI.Shortcuts module.
- .*/Admin/.*
- .*/Lombiq.Tests.UI.Shortcuts/.*
authentication:
parameters: {}
verification:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,6 @@ public static Task RunAndConfigureAndAssertFullSecurityScanForContinuousIntegrat
// Signing in ensures full access and that the bot won't have to interact with the login screen.
if (doSignIn) configuration.SignIn();

// There is no need to security scan the admin dashboard.
configuration.ExcludeUrlWithRegex(@".*/Admin/.*");

// There is no need to security scan anything in Lombiq.Tests.UI.Shortcuts.
configuration.ExcludeUrlWithRegex(@".*/Lombiq.Tests.UI.Shortcuts/.*");

// Active scan takes a very long time, this is not practical in CI.
configuration.ModifyZapPlan(plan => plan
.SetActiveScanMaxDuration(maxActiveScanDurationInMinutes, maxRuleDurationInMinutes));
Expand Down

0 comments on commit 387ae20

Please sign in to comment.