Update xss-example.js #119
This file contains hidden or 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
# Mobb/Checkamrx Fixer on pull requests | |
# This workflow defines the needed steps to run Checkmarx on every pull request and pass the results to Mobb Fixer. | |
name: "Mobb/Checkmarx CLI" | |
on: | |
pull_request: | |
branches: ["*"] | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
name: CHECKMARX | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
- name: Download Checkmarx CLI | |
run: | | |
wget -O cxcli.zip https://download.checkmarx.com/9.5.0/Plugins/CxConsolePlugin-1.1.30.zip | |
unzip cxcli.zip | |
ls -l | |
- name: Run Checkmarx CLI Scan | |
run: | | |
./runCxConsole.sh Scan -v \ | |
-ProjectName 'CxServer\Mobb\Mobb-Autofixer' \ | |
-CxServer ${{ secrets.CHECKMARX_URL }} \ | |
-cxuser ${{ secrets.CHECKMARX_USERNAME }} \ | |
-cxpassword ${{ secrets.CHECKMARX_PASSWORD }} \ | |
-LocationType folder \ | |
-LocationPath "./" \ | |
-SASTHigh 1 \ | |
-ReportXML "report.xml" | |
shell: bash -l {0} | |
- name: Archive report | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: sast-report | |
path: Checkmarx/Reports/report.xml | |
- name: Run Mobb on the findings and get fixes | |
if: always() | |
uses: mobb-dev/action/[email protected] | |
with: | |
report-file: "Checkmarx/Reports/report.xml" | |
api-key: ${{ secrets.MOBB_API_TOKEN }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
scanner: checkmarx |