Integrating Acunetix with Github for issue tracking
Integrating Acunetix with Github is a 4-step process:
- Prepare a Personal Access Token in Github for communication with Acunetix
- Configuring Acunetix for Integration
- Configuring a Target to Report Issues to your Issue Tracker
- Submitting Vulnerabilities to Github
π Integrating Acunetix with Github - Prerequisites |
Before you can successfully integrate Acunetix with Github, you will need to have completed some preparation beforehand:
|
Create a Personal Access Token in your Github Profile
- From your Github profile dropdown, select "Settings"
- Click the "Developer Settings" button
- Click the "Personal access tokens" button
- Click the "Generate new token" button
- In the "New personal access token" page:
- Set the "Note" field to "Acunetix Integration" β this is only a friendly name to remind you of its use
- Select the "repo" scope in the "Select scopes" list β this will automatically select all the sub-items within the "repo" scope
- Scroll to the bottom of the page and click the "Generate token" button
- Make sure you keep a copy of the Token - it cannot be retrieved after you exit the page. If you lose the Token, you will need to create a new one and repeat the process.
Configuring Acunetix for Integration
- In the Acunetix UI, click on "Issue Trackers" in the sidebar
- Click on the "Add Issue Tracker" button
- Set the "Name" field to describe the integration β for this example, we have used "Github Issues"
- In the "Target Groups Access" panel, select which Target Groups will be assigned to the Issue Tracker; only Targets inside an assigned Target Group can be integrated into this Issue Tracker
- In the "Proxy Settings" panel, choose which HTTP proxy settings will be used to communicate with this Issue Tracker
- Select "Github" from the dropdown labelled "Platform"
- Set the "Authentication" field to "Personal Access Token (PAT)"
- This example assumes you are using the Github.com online service, so you would set the URL to "https://api.github.com"
- Insert your Github Personal Access Token into the "Token" field
- Click on "Test Connection" - you should receive a "Connection is Successful" message; also, the "Project and Issue Type" panel will be updated with your list of Projects and Issue Labels
- Select the Github project you want the integration to be linked to β in this example you would be using the pre-created "internal-wiki" project
- Select the Github Issue Type you want Acunetix to create when a vulnerability is found β in this example you would be using the custom type "vulnerability"
- Click the "Save" button at the top of the "Add Issue Tracker" panel
Configuring a Target to Report Issues to your Issue Tracker
From your list of Targets, select the Target you wish to work with.
- In the Target Information panel, scroll to the bottom of the panel and expand the "Advanced" link.
- Enable the "Issue Tracker" slider
- From the "Issue Tracker" dropdown, select the name of the Github Integration configuration you wish to use
- At the top of the "Target Information" panel, click the "Save" button
Now that your Target is configured to link to Github, you need to Scan your Target. When the Scan is completed, you will be able to select the Vulnerabilities to submit to your Issue Tracker.
Submitting Vulnerabilities to Github
Once you have completed a Scan on your Target:
- select "Vulnerabilities" in the sidebar
- adjust your filter to obtain a shortlist containing the vulnerabilities you wish to send to your Issue Tracker
- use the checkboxes next to vulnerability to select the vulnerabilities to send to the Issue Tracker
- click the "Send to Issue Tracker" button at the top of the "Vulnerabilities" panel
Check your Github Issues page
Your Github Issues page will show the issues you have submitted to the Issue Tracker: