Skip to content

Test/failing pr example - #7

Merged
Camj78 merged 14 commits into
mainfrom
test/failing-pr-example
Apr 9, 2026
Merged

Camj78 merged 14 commits into
mainfrom
test/failing-pr-example

Conversation

@Camj78

@Camj78 Camj78 commented Apr 8, 2026

Copy link
Copy Markdown
Owner

No description provided.

@vercel

vercel Bot commented Apr 8, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cost-guard-ai Ready Ready Preview, Comment Apr 9, 2026 2:58am

@github-actions

github-actions Bot commented Apr 9, 2026 •

Copy link
Copy Markdown

⚠️ CostGuardAI Safety Report

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: 70

Powered 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>
@github-actions

github-actions Bot commented Apr 9, 2026

Copy link
Copy Markdown

⚠️ CostGuard detected elevated prompt risk

Safety Score: 19 / 100 (below minimum threshold of 25)

Top Risk Drivers:

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

@Camj78
Camj78 merged commit 13fc012 into main Apr 9, 2026
5 of 6 checks passed
@Camj78
Camj78 deleted the test/failing-pr-example branch April 9, 2026 03:59

This branch was successfully deployed

2 active deployments
Production — 13fc012c Deployed Apr 9, 2026 by vercel[bot]
Preview — 13fc012c Deployed Apr 9, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant