diff --git a/.github/workflows/secret-scan.yaml b/.github/workflows/secret-scan.yaml new file mode 100644 index 0000000..33f4c4f --- /dev/null +++ b/.github/workflows/secret-scan.yaml @@ -0,0 +1,30 @@ +name: secret-scan +on: + push: + branches: + - main + - dev + pull_request: + branches: + - main + - dev + workflow_dispatch: + +jobs: + truffle: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + ref: ${{ github.head_ref }} + + - name: Accuknox Secret Scan + uses: pishone-accuknox/secret-scan-action@v1.2 + with: + endpoint: ${{ secrets.CSPM_URL }} + tenant_id: ${{ secrets.TENANT_ID }} + label: ${{ vars.LABEL_ID }} + token: ${{ secrets.CSPM_TOKEN }} + fail: "false"