### Configure Issue Publishing Workflow Source: https://github.com/hcl-tech-software/appscan-codesweep-action/blob/master/README.md Add this workflow configuration to publish security issues to ASoC or AppScan 360 upon pull request closure. ```yaml name: "HCL AppScan CodeSweep" on: pull_request: types: [closed] jobs: publish: runs-on: ubuntu-latest steps: - name: Publish issues to ASoC uses: HCL-TECH-SOFTWARE/appscan-codesweep-action@v2.1 with: asoc_key: ${{secrets.ASOC_KEY}} asoc_secret: ${{secrets.ASOC_SECRET}} publish_on_merge: true application_id: env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} ``` -------------------------------- ### Configure Checkout Action Fetch Depth Source: https://github.com/hcl-tech-software/appscan-codesweep-action/blob/master/README.md Ensure fetch-depth is set to 0 when using checkout@v2 or later to allow the action to access the full commit history. ```yaml uses: actions/checkout@v2 with: fetch-depth: 0 ``` -------------------------------- ### Configure Issue Publishing Source: https://github.com/hcl-tech-software/appscan-codesweep-action/blob/master/README.md Configures parameters for publishing scan results to ASoC or AppScan 360, including application ID and scan metadata. ```yaml with: publish_on_merge: true application_id: 6c058381-17ca-e711-8de5-002590ac753d issue_status: "inprogress" scan_base_name: "CodeSweep" personal_scan: true ``` -------------------------------- ### Configure Pull Request Scanning Workflow Source: https://github.com/hcl-tech-software/appscan-codesweep-action/blob/master/README.md Add this workflow configuration to scan code changes automatically when a pull request is opened or synchronized. ```yaml name: "HCL AppScan CodeSweep" on: pull_request: types: [opened,synchronize] jobs: scan: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 0 - name: Run AppScan CodeSweep uses: HCL-TECH-SOFTWARE/appscan-codesweep-action@v2.1 env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} ``` -------------------------------- ### Configure Scan Status Source: https://github.com/hcl-tech-software/appscan-codesweep-action/blob/master/README.md Sets the status of the check run when security issues are detected. Must be one of 'action_required', 'failure', or 'neutral'. ```yaml with: status: failure ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.