Skip to content

Commit

Permalink
feat: add cxone scan
Browse files Browse the repository at this point in the history
  • Loading branch information
fjsnogueira authored Apr 17, 2024
1 parent 382b52a commit 2a1d905
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ast-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Checkmarx One Scan

on:
workflow_dispatch:
pull_request:
push:
branches:
- main

jobs:
cx-scan:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkmarx One CLI Action
uses: checkmarx/ast-github-action@main

Check warning on line 17 in .github/workflows/ast-scan.yml

View workflow job for this annotation

GitHub Actions / kics

[MEDIUM] Unpinned Actions Full Length Commit SHA

Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps mitigate the risk of a bad actor adding a backdoor to the action's repository, as they would need to generate a SHA-1 collision for a valid Git object payload. When selecting a SHA, you should verify it is from the action's repository and not a repository fork.
with:
base_uri: ${{ secrets.AST_RND_SCANS_BASE_URI }}
cx_tenant: ${{ secrets.AST_RND_SCANS_TENANT }}
cx_client_id: ${{ secrets.AST_RND_SCANS_CLIENT_ID }}
cx_client_secret: ${{ secrets.AST_RND_SCANS_CLIENT_SECRET }}
additional_params: --tags scs --threshold "sast-high=1; sast-medium=1; sast-low=1; iac-security-high=1; iac-security-medium=1; iac-security-low=1"

0 comments on commit 2a1d905

Please sign in to comment.