Skip to main content
availability

Package: Invicti AppSec Core (on-demand), Invicti AppSec Enterprise (on-premise, on-demand)

Configure branch retention

Branch retention settings control how long inactive branches are kept in your project. Branches with no scans or imports within the specified retention period are permanently deleted.

Retention period for inactive branches

The retention period defines the number of days a branch can remain inactive before it is automatically deleted. A branch is considered inactive if no scans or imports have been performed on it within the specified time frame.

  • Default: 30 days
  • Maximum: 90 days

Inactive branches to retain

By default, all inactive branches are automatically deleted after the retention period. You can exclude specific branches from deletion by adding regular expression patterns to the retention list. If a branch name matches any of the listed patterns, it is preserved even after becoming inactive.

The following branches are retained by default: master, main, develop.

Example patterns:

PatternMatches
masterThe master branch
mainThe main branch
developThe develop branch
release-.*Any branch starting with release- (for example, release-1.0, release-2.3.1)

Steps to configure branch retention

  1. Select Inventory > Projects from the left side menu.
  2. Click the project name to open the project dashboard.
  3. Select the Settings tab and then Branch Retention.
  4. Set the Retention period (in days) for inactive branches.
  5. Under Inactive branches to retain, add any branch name patterns you want to exclude from automatic deletion.
  6. Click Save to apply your configuration.
tip

Use regular expressions to match multiple branches with a single pattern. For example, release-.* retains all release branches regardless of version number.


Need help?

Invicti Support team is ready to provide you with technical help. Go to Help Center

Was this page useful?