Dast-web #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Checkmarx DAST | |
name: Dast-web | |
on: | |
# push: | |
# branches: [ "main" ] | |
# pull_request: | |
# branches: [ "main" ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v3 | |
# Scan with Checkmarx DAST | |
- name: run cxdast on my web app | |
uses: checkmarx/[email protected] | |
env: | |
CX_APIKEY: ${{ secrets.CXONE_APIKEY }} | |
with: | |
command: web | |
config: web.yaml | |
environment_id: 279fbc38-8f6b-4564-825e-ac70bc2ca501 | |
base_url: https://eu.ast.checkmarx.net/ | |
# fail_on: 'HIGH' | |
verbose: true | |
output: ./output | |
- name: Reclaim output directory | |
if: always() | |
run: sudo chown -R 1001:1001 ${{ github.workspace }}/output | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
name: Attach DAST report as an artifact to workflow | |
with: | |
name: report.pdf | |
path: ./output |