This action requests a scan on Netsparker Enterprise.
Required Unique Id for your website on Netsparker Enterprise.
Required Requested scan type for scan.
Optional Unique profile Id for your requested website scan profile on Netsparker Enterprise.
Required User Id on Netsparker Enterprise API Credentials. Use GitHub Secrets.
Required API Token on Netsparker Enterprise API Credentials. Use GitHub Secrets.
Required Website URL for Netsparker Enterprise.
Optional Fail the build if one of the selected scan severity is detected.
Optional Severity filter. Options :
DoNotFail : Do not fail the build
Critical : Critical
Critical,High : High or above
Critical,High,Medium : Medium or above
Critical,High,Medium,Low : Low or above
Critical,High,Medium,Low,Best Practice : Best Practices or above
Scan message for requested scan.
name: Netspaker Enterprise Scan Sample Workflow
on:
push:
branches: [ main ]
jobs:
netspaker_scan_job:
runs-on: ubuntu-20.04
steps:
# Starts actions with given inputs
- name: Start Netsparker Enterprise Scan
id: netsparker-enterprise-scan-step
uses: netsparker/[email protected]
with:
website-id: '******' # FILL HERE
scan-type: 'FullWithSelectedProfile'
profile-id: '******' # FILL HERE
user-id: ${{ secrets.NETSPARKER_USER_ID }}
api-token: ${{ secrets.NETSPARKER_API_TOKEN }}
base-url: 'https://www.netsparkercloud.com'
wait-for-completion: false
fail-on-level: 'DoNotFail'
# Displays output for action
- name: Display Scan Request Message
run: echo "${{ steps.netsparker-enterprise-scan-step.outputs.scan-message }}" >> $GITHUB_OUTPUT