How to get notified when a large scan completes?
Security for Bitbucket can send email notifications after scans complete, containing links to view and download the scan results.
Use the REST API for Mass Scanning and provide the email
parameter to your REST Call, like so:
curl -u admin -X PUT "https://{bitbucket.server}/rest/security/latest/status/[email protected]&[email protected]"
curl -u admin -X PUT "https://{bitbucket.server}/rest/security/latest/status/projects/{projectKey}[email protected]&[email protected]"
curl -u admin -X PUT "https://{bitbucket.server}/rest/security/latest/status/projects/{projectKey}/repos/{repoSlug}[email protected]&[email protected]"
curl -u admin -X PUT "https://{bitbucket.server}/rest/security/latest/status/projects/{projectKey}/repos/{repoSlug}/branches?name=main-branch&[email protected]&[email protected]"
These commands will send emails to both [email protected]
and [email protected]
when the scans complete. The email parameter may be specified multiple times.
Email notifications are not currently exposed via the UI – only via the REST API.