Skip to content

CI Integration

One can use Code PathFinder as a part of your CI/CD pipeline to scan your code for vulnerabilities. The code-pathfinder docker image is available on Docker Hub.

name: Code-Pathfinder SAST Scan
on:
pull_request:
jobs:
sast-scan:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Code-Pathfinder SAST Scan
uses: shivasurya/code-pathfinder@main
with:
command: 'ci'
project: '.'
output-file: 'output.sarif'
output: 'sarif'
ruleset: 'cpf/java'
- name: Read SARIF file
run: |
echo "SARIF file content:"
cat $GITHUB_WORKSPACE/output.sarif