Skip to content

Commit

Permalink
Update checkmarx.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
itsKedar authored Mar 14, 2024
1 parent 18ff1d3 commit 7fba243
Showing 1 changed file with 8 additions and 23 deletions.
31 changes: 8 additions & 23 deletions .github/workflows/checkmarx.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,32 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# This is a basic workflow to help you get started with Using Checkmarx CxFlow Action

name: CxFlow

on:
push:
branches: [ main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
schedule:
- cron: '39 15 * * 1'

# A workflow run is made up of one or more jobs that can run sequentially or in parallel - this job is specifically configured to use the Checkmarx CxFlow Action
permissions:
contents: read

jobs:
# This workflow contains a single job called "build"
build:
name: CHECKMARX
# The type of runner that the job will run on - Ubuntu is required as Docker is leveraged for the action
permissions:
contents: read # for actions/checkout to fetch code
issues: write # for checkmarx-ts/checkmarx-cxflow-github-action to write feedback to github issues
pull-requests: write # for checkmarx-ts/checkmarx-cxflow-github-action to write feedback to PR
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
contents: read
issues: write
pull-requests: write
security-events: write
runs-on: ubuntu-latest

# Steps require - checkout code, run CxFlow Action, Upload SARIF report (optional)
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Runs the Checkmarx Scan leveraging the latest version of CxFlow - REFER to Action README for list of inputs

- name: Setup Maven
uses: stCarolas/setup-maven@v5

- name: Checkmarx CxFlow Action
uses: checkmarx-ts/[email protected]
env:
Expand Down Expand Up @@ -72,8 +62,3 @@ jobs:
jira_open_status : 'Selected for Development,In Progress'
jira_closed_status : 'Done'
params: '--sca.enable-sca-resolver=true --namespace=${{ github.repository_owner }} --repo-name=${{ github.event.repository.name }} --branch=${{ github.ref }} --merge-id=${{ github.event.number }} --logging.level.com.checkmarx.*=DEBUG --cx-flow.filterSeverity --cx-flow.filterCategory'
# Upload the Report for CodeQL/Security Alerts
#- name: Upload SARIF file
#uses: github/codeql-action/upload-sarif@v2
#with:
#sarif_file: cx.sarif

0 comments on commit 7fba243

Please sign in to comment.