Test/failing pr example - #7
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
| File | Safety | Band | Tokens | Cost/req |
|---|---|---|---|---|
prompts/bad.prompt |
🔴 19 | Unsafe | 968 | $0.0005 |
Risk Drivers Detail
prompts/bad.prompt — Safety Score: 19
- Security Pattern Risk: +90
- Structural Risk: +15
- Length Risk: +5
Analyzed 1 file(s). Min Safety Score: 19 (Unsafe).
Safety Trend
Last 10 commits: +0 safety · Trend: stable
Highest risk prompt: prompts/bad.prompt
🚀 Catch this earlier in CI
This PR dropped below the recommended CostGuardAI Safety Score. You can catch this before merge with CostGuardAI:
name: CostGuardAI
on: [pull_request]
jobs:
costguard:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Camj78/costguardai-action@v1
with:
# minimum CostGuardAI Safety Score
fail-on-risk: 70Powered by CostGuardAI · score v1
If this saved you from a bad prompt, consider ⭐ starring CostGuardAI
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
| Driver | Impact |
|---|---|
| Security Pattern Risk | +90 |
| Structural Risk | +15 |
| Length Risk | +5 |
Recommendation:
- Add explicit output constraints
- Reduce prompt length
- Define max response tokens
Run locally:
costguard analyze prompts/bad.prompt
Learn more about the scoring methodology
Analyzed by CostGuardAI · score v1 · threshold 75
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.