CI Integration
Hardpoint integrates with popular CI/CD platforms to catch security issues before they reach production.GitHub Actions
Basic Workflow
Create.github/workflows/hardpoint.yml:
With SARIF Upload
Upload results to GitHub Code Scanning:With Trust Verification
Verify AI configs haven’t been tampered with:GitLab CI
Create.gitlab-ci.yml:
With SARIF Artifact
CircleCI
Create.circleci/config.yml:
Jenkins
Add to yourJenkinsfile:
Pre-Commit Hook
For local enforcement, use the pre-commit hook:hardpoint scan --ci --staged on every commit.
Exit Codes
| Code | Meaning | CI Behavior |
|---|---|---|
| 0 | No findings | Pipeline passes |
| 1 | Findings detected | Pipeline fails (with --ci) |
| 2 | Error during scan | Pipeline fails |
Best Practices
- Run on PRs - Catch issues before merge
- Upload SARIF - Get findings in GitHub Security tab
- Verify trust baseline - Detect unauthorized config changes
- Cache Go modules - Speed up builds
- Use
--ciflag - Ensures proper exit codes