-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JIRA:CXFLW-158] CxFlow GH Action (GHA #32): value with blank spaces …
…in quotes are interpreted as multiple parameters Parameters in "params:" value with blank spaces in quotes are interpreted as multiple parameters. --jira.open-status="Backlog,Selected for Development,In Progress" is actually interpreted as multiple arguments (4 in total for this example): 1. --jira.open-status="Backlog,Selected 2. for 3. Development,In 4. Progress"
- Loading branch information
1 parent
9975af7
commit f9df435
Showing
3 changed files
with
107 additions
and
1 deletion.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/bin/sh | ||
java ${JAVA_OPTS} -jar /app/cx-flow.jar --spring.profiles.active="${CX_FLOW_ENABLED_VULNERABILITY_SCANNERS}" --scan --github.api-url="${GITHUB_API_URL}/repos/" --cx-team="${TEAM}" --cx-project="${PROJECT}" --app="${APP}" --f=. ${CXFLOW_PARAMS} | ||
java ${JAVA_OPTS} -jar /app/cx-flow.jar --spring.profiles.active="${CX_FLOW_ENABLED_VULNERABILITY_SCANNERS}" --scan --github.api-url="${GITHUB_API_URL}/repos/" --cx-team="${TEAM}" --cx-project="${PROJECT}" --app="${APP}" --jira.url="${JIRA_URL}" --jira.username="${JIRA_USERNAME}" --jira.token="${JIRA_TOKEN}" --jira.project="${JIRA_PROJECT}" --jira.issue-type="${JIRA_ISSUE_TYPE}" --jira.open-transition="${JIRA_OPEN_TRANSITION}" --jira.close-transition="${JIRA_CLOSE_TRANSITION}" --jira.open-status="${JIRA_OPEN_STATUS}" --jira.closed-status="${JIRA_CLOSED_STATUS}" --f=. ${CXFLOW_PARAMS} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# This workflow is to automate Checkmarx SAST scans. It runs on a push to the main branch. | ||
# | ||
# The following GitHub Secrets must be first defined: | ||
# - CHECKMARX_URL | ||
# - CHECKMARX_USER | ||
# - CHECKMARX_PASSWORD | ||
# - CHECKMARX_CLIENT_SECRET | ||
# | ||
# The following variables must be inserted below: | ||
# - <ProjectName> | ||
# | ||
# Update the 'team' field to reflect the team name used in Checkmarx. | ||
# | ||
# For full documentation, including a list of all inputs, please refer to the README https://github.com/checkmarx-ts/checkmarx-cxflow-github-action | ||
|
||
name: Checkmarx SAST Scan | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Checkmarx CxFlow Action | ||
uses: checkmarx-ts/checkmarx-cxflow-github-action@v1.4 #Github Action version | ||
with: | ||
project: ${{ secrets.CHECKMARX_PROJECT }} # <-- Insert Checkmarx SAST Project Name | ||
team: ${{ secrets.CHECKMARX_TEAMS }} | ||
checkmarx_url: ${{ secrets.CHECKMARX_URL }} # To be stored in GitHub Secrets. | ||
checkmarx_username: ${{ secrets.CHECKMARX_USER }} # To be stored in GitHub Secrets. | ||
checkmarx_password: ${{ secrets.CHECKMARX_PASSWORD }} # To be stored in GitHub Secrets. | ||
checkmarx_client_secret: ${{ secrets.CHECKMARX_CLIENT_SECRET }} # To be stored in GitHub Secrets. | ||
break_build: false | ||
scanners: sast | ||
bug_tracker: JIRA | ||
jira_url: ${{ secrets.JIRA_URL }} | ||
jira_username: ${{ secrets.JIRA_USERNAME }} | ||
jira_token: ${{ secrets.JIRA_TOKEN }} | ||
jira_project: ${{ secrets.JIRA_PROJECT }} | ||
jira_issue_type: 'Application Security Bug' | ||
jira_open_transition: 'In Progress' | ||
jira_close_transition: 'Done' | ||
jira_open_status: 'Backlog,Selected for Development,In Progress' | ||
jira_closed_status: 'Done' | ||
params: --namespace=${{ github.repository_owner }} --repo-name=${{ github.event.repository.name }} --branch=${{ github.ref }} --cx-flow.filterSeverity --cx-flow.filterCategory --jira.priorities.High=High --jira.priorities.Medium=Medium --jira.priorities.Low=Low --jira.priorities.Informational=Lowest |