### Dastardly Scan with Error Handling and Report Publishing Source: https://github.com/portswigger/dastardly-github-action/blob/main/README.md This example demonstrates a suggested usage pattern for the Dastardly GitHub Action. It includes `continue-on-error: true` to allow subsequent steps to run even if the Dastardly scan fails, and a subsequent step to publish the JUnit XML report using `mikepenz/action-junit-report`. ```yaml steps: - name: Run Dastardly Action Step continue-on-error: true # This allows subsequent steps to run even if this step fails uses: PortSwigger/dastardly-github-action@main with: target-url: 'https://ginandjuice.shop' # You can replace this next step with any JUnit XML parser of your choosing - name: Publish Test Report if: always() # Forces this step to always run uses: mikepenz/action-junit-report@v3 with: report_paths: '**/dastardly-report.xml' # You need to update this path if you pass in a different output filename to the Dastardly action require_tests: true ``` -------------------------------- ### Basic Dastardly Scan Source: https://github.com/portswigger/dastardly-github-action/blob/main/README.md This snippet shows the most basic usage of the Dastardly GitHub Action. It requires only the target URL to initiate a scan. ```yaml steps: - name: Run Dastardly Action Step uses: PortSwigger/dastardly-github-action@main with: target-url: 'https://ginandjuice.shop' ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.