Integrating Acunetix 360 with GitHub Actions
GitHub Actions automates tasks in your development lifecycle, running commands based on specified events. You can integrate Acunetix 360 with GitHub using scripts from our Integration Script Generator. This document explains how to generate and use these scripts for integration.
How to generate and use the Acunetix 360 GitHub Actions script
IMPORTANT: Ensure you create a .github/workflows directory. For more information, refer to GitHub Docs: Quickstart for GitHub Actions. |
- Log in to Acunetix 360.
- From the main menu, select Integrations > New Integration.
- From the Continuous Integration Systems section, select GitHub Actions.
- In the Integration Script Generator section, select the relevant Scan Settings:
- Scan Type: Choose from Incremental, Full (With primary profile), or Full (With selected profile).
- Website: Select a website to be scanned.
- Scan Profile: Choose a scan profile. This field is not displayed if you select Full (With primary profile) as the Scan Type.
- If you select the Fail the build if one of the selected scan severity is detected checkbox, Acunetix will fail the build in your GitHub Actions if any of the selected severities are found. Specify the severity level in the Scan Severity dropdown that appears when this checkbox is selected.
- From the GitHub Actions Script field, Copy the script. The script updates as soon as you make any changes to the fields above.
- Log in to your GitHub account.
- Navigate to your GitHub Actions window.
- Paste the copied script into the Jobs section of [your-project].yml.
- Commit and push it to the Git repository.
Committing the workflow file in your repository triggers the event and runs your workflow. For more details on configuring the workflow, refer to GitHub Docs: Workflow syntax for GitHub Actions. For an example scan workflow script, see GitHub Actions.