From 6163b31f138aee3b1988000fb760ebc3e93264b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Macedo?= <149069722+amacedoo@users.noreply.github.com> Date: Tue, 17 Sep 2024 21:10:10 +0100 Subject: [PATCH] Create ast-scan.yaml --- .github/workflows/ast-scan.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/ast-scan.yaml diff --git a/.github/workflows/ast-scan.yaml b/.github/workflows/ast-scan.yaml new file mode 100644 index 0000000..56bc55f --- /dev/null +++ b/.github/workflows/ast-scan.yaml @@ -0,0 +1,24 @@ +name: Checkmarx One Scan +on: + workflow_dispatch: + pull_request: + push: + branches: + - main + schedule: + - cron: '00 7 * * *' # Every day at 07:00 + +jobs: + cx-scan: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - name: Checkmarx One CLI Action + uses: checkmarx/ast-github-action@6c56658230f79c227a55120e9b24845d574d5225 # v.2.0.31 + with: + base_uri: ${{ secrets.AST_RND_SCANS_BASE_URI }} + cx_tenant: ${{ secrets.AST_RND_SCANS_TENANT }} + cx_client_id: ${{ secrets.AST_RND_SCANS_CLIENT_ID }} + cx_client_secret: ${{ secrets.AST_RND_SCANS_CLIENT_SECRET }} + additional_params: --tags phoenix --threshold "sca-high=1; sca-medium=1; sca-low=1; sast-high=1;sast-medium=1;sast-low=1; iac-security-high=1; iac-security-medium=1; iac-security-low=1"