diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..132bd80 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,20 @@ +name: 'Dastardly Scan Action' +description: 'Runs a Dastardly scan against a target site' +author: 'PortSwigger' +inputs: + target-url: 'https://hgsconnect.teamhgs.com/myapps' + description: 'The full url (including scheme) of the site to scan' + required: true + output-filename: + description: 'The filename used for the scan report. This filepath relates to the dastardly container, and will exist in the github workspace (/github/workspace)' + required: false + default: dastardly-report.xml +runs: + using: 'docker' + image: 'Dockerfile' + env: + DASTARDLY_TARGET_URL: ${{ inputs.target-url }} + DASTARDLY_OUTPUT_FILE: /github/workspace/${{ inputs.output-filename }} +branding: + icon: 'activity' + color: 'green' diff --git a/action.yml b/action.yml index a0a4359..132bd80 100644 --- a/action.yml +++ b/action.yml @@ -2,7 +2,7 @@ name: 'Dastardly Scan Action' description: 'Runs a Dastardly scan against a target site' author: 'PortSwigger' inputs: - target-url: + target-url: 'https://hgsconnect.teamhgs.com/myapps' description: 'The full url (including scheme) of the site to scan' required: true output-filename: @@ -17,4 +17,4 @@ runs: DASTARDLY_OUTPUT_FILE: /github/workspace/${{ inputs.output-filename }} branding: icon: 'activity' - color: 'green' \ No newline at end of file + color: 'green'