Skip to content

Dastardly

Dastardly #21

Workflow file for this run

name: dastardly
on:
pull_request:
branches:
- main
jobs:
notice:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: mshick/add-pr-comment@v2
with:
message: |
A `dastardly` check is going to start soon on sandbox
Please make sure that sandbox is successfully deployed with the changes from this PR, if not, wait for the amplify deployment to finish (or run it manually) and then re-run this job
(This is a PoC, in the future we could enforce an amplify deployment as an action to ensure it is done)
scan:
needs: notice
runs-on: ubuntu-latest
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: ${{ secrets.SANDBOX_URL }}
# 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