Update checkmarx.yml #19
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
name: CxFlow | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
schedule: | |
- cron: '39 15 * * 1' | |
permissions: | |
contents: read | |
jobs: | |
build: | |
name: CHECKMARX | |
permissions: | |
contents: read | |
issues: write | |
pull-requests: write | |
security-events: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Download and extract Maven | |
run: | | |
mkdir -p /github/workspace/maven | |
curl -fsSL https://apache.osuosl.org/maven/maven-3/3.8.4/binaries/apache-maven-3.8.4-bin.tar.gz | tar -xzC /github/workspace/maven --strip-components=1 | |
# Add Maven bin directory to PATH | |
- name: Add Maven to PATH | |
run: echo "::add-path::/github/workspace/maven/bin" | |
- name: Checkmarx CxFlow Action | |
uses: checkmarx-ts/[email protected] | |
env: | |
SCA_SCARESOLVERADDPARAMETERS_CUSTOM-PARAMETER : "--gradle-parameters=-Paws.codeartifact.username=${{ github.repository_owner }} -Paws.codeartifact.token=${{ github.repository_owner }}" | |
SCA_SCARESOLVERADDPARAMETERS_LOG-LEVEL : Debug | |
JIRA_FIELDS_0_JIRA_DEFAULT_VALUE : APPSEC-2371 | |
JIRA_FIELDS_0_JIRA_FIELD_NAME : "Epic Link" | |
JIRA_FIELDS_0_JIRA_FIELD_TYPE : text | |
JIRA_FIELDS_0_TYPE : static | |
with: | |
project: ${{ github.repository }}-PR | |
team: ${{ secrets.CHECKMARX_TEAMS }} | |
checkmarx_url: ${{ secrets.CHECKMARX_URL }} | |
checkmarx_username: ${{ secrets.CHECKMARX_USERNAME }} | |
checkmarx_password: ${{ secrets.CHECKMARX_PASSWORD }} | |
checkmarx_client_secret: ${{ secrets.CHECKMARX_CLIENT_SECRET }} | |
scanners: sca | |
incremental: false | |
extra_certificates: . | |
break_build: true | |
preset: 'Checkmarx Default' | |
bug_tracker: WAIT | |
sca_api_url: ${{ secrets.SCA_API_URL }} | |
sca_app_url: ${{ secrets.SCA_APP_URL }} | |
sca_access_control_url: ${{ secrets.SCA_ACCESS_CONTROL_URL }} | |
sca_tenant: ${{ secrets.SCA_TENANT }} | |
sca_username: ${{ secrets.SCA_USERNAME }} | |
sca_password: ${{ secrets.SCA_PASSWORD }} | |
jira_url : 'https://kedarbhujade.atlassian.net' | |
jira_username : '[email protected]' | |
jira_token : ${{ secrets.JIRA_TOKEN }} | |
jira_project : 'APPSEC' | |
jira_issue_type : 'Bug' | |
jira_open_transition : 'In Progress' | |
jira_close_transition : 'Done' | |
jira_open_status : 'Selected for Development,In Progress' | |
jira_closed_status : 'Done' | |
params: '--sca.enable-sca-resolver=true --namespace=${{ github.repository_owner }} --checkmarx.settings-override=true --repo-name=${{ github.event.repository.name }} --branch=${{ github.ref_name }} --merge-id=${{ github.event.number }} --logging.level.com.checkmarx.*=DEBUG --cx-flow.filterSeverity --cx-flow.filterCategory' |