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:
| Pattern | Matches |
|---|---|
master | The master branch |
main | The main branch |
develop | The develop branch |
release-.* | Any branch starting with release- (for example, release-1.0, release-2.3.1) |
Steps to configure branch retention
- Select Inventory > Projects from the left side menu.
- Click the project name to open the project dashboard.
- Select the Settings tab and then Branch Retention.
- Set the Retention period (in days) for inactive branches.
- Under Inactive branches to retain, add any branch name patterns you want to exclude from automatic deletion.
- Click Save to apply your configuration.
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