Skip to content

Create cxone.yml

Create cxone.yml #7

Workflow file for this run

name: Checkmarx One Scan
on:
# push:
# # branches: [ dev, main, master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ dev, main, master ]
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Checkmarx One CLI Action
uses: Checkmarx/ast-github-action@main #Github Action version
with:
project_name: test-gha
cx_tenant: sap-staging
base_uri: https://checkmarx-stage.tools.sap
cx_client_id: ${{ secrets.CX_CLIENT_ID }}
cx_client_secret: ${{ secrets.CX_CLIENT_SECRET }}
additional_params: --sast-preset-name "Checkmarx Default" --debug --report-format sarif --output-path .
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v2
with:
# Path to SARIF file relative to the root of the repository
sarif_file: cx_result.sarif