Scan PRs for security vulnerabilities, code quality issues, and guardrail compliance.
Add to .github/workflows/opsentry.yml:
name: OpSentry
on:
pull_request:
branches: [main]
permissions:
contents: write
pull-requests: write
jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: opsight-intelligence/opsentry-action@v1That's it. Every PR gets scanned for secrets, SQL injection, dangerous patterns, code quality, and guardrail compliance.
| Input | Default | Description |
|---|---|---|
scan-type |
all |
security, code-health, governance, or all |
scan-mode |
changed |
changed (PR files only) or full (all files) |
fail-on |
high |
Fail on: critical, high, medium, low, none |
auto-fix |
true |
Auto-fix safe issues and commit to PR branch |
post-comment |
true |
Post results as a PR comment |
llm-provider |
none |
LLM for docstring generation: bedrock, anthropic, openai, local, none |
- uses: opsight-intelligence/opsentry-action@v1
with:
scan-type: security
fail-on: critical- uses: opsight-intelligence/opsentry-action@v1
with:
llm-provider: anthropic
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}