Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,9 @@ CodeScene
[![CodeScene Hotspot Code Health](https://codescene.io/projects/79939/status-badges/hotspot-code-health)](https://codescene.io/projects/79939)
[![CodeScene Missed Goals](https://codescene.io/projects/79939/status-badges/missed-goals)](https://codescene.io/projects/79939)
[![CodeScene System Mastery](https://codescene.io/projects/79939/status-badges/system-mastery)](https://codescene.io/projects/79939)

GuardRails
[![GuardRails badge](https://api.guardrails.io/v2/badges/716795?token=0ed261234e4e51bfb9562d7161ce66cce193e4c9d9f9092cc8d0caf081e532fa)](https://dashboard.guardrails.io/gh/LCSOGthb/repos/716795)
Comment on lines +73 to +74

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Action required

1. Guardrails token exposed 🐞 Bug ⛨ Security

README.md adds a GuardRails badge URL that embeds a token directly in the query string, making it
retrievable by anyone with repo access (and permanently stored in git history). If this token is
scoped to GuardRails APIs, it can be reused by unauthorized parties and should be rotated and
removed from the repo.
Agent Prompt
## Issue description
The README includes a GuardRails badge URL containing a `token=` query parameter. This is a credential-like value committed into source control and should be removed and rotated.

## Issue Context
The token is currently embedded in the badge image URL, which makes it easy to scrape and re-use.

## Fix Focus Areas
- README.md[73-74]

## Suggested fix
1. Remove the `token=...` from the README badge URL (use a GuardRails badge URL that does not require a secret/token, if available).
2. Rotate/revoke the exposed token in GuardRails immediately since it is now in git history.
3. If a token is required to render the badge, consider removing the badge from the README or replacing it with a non-secret/public endpoint.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Remove the embedded GuardRails token from the public badge URL.

Line 74 includes a long static token in the README link. Treat this as a secret leak risk in a public repo; use a non-secret/public badge URL variant (if supported) and rotate this token in GuardRails.

Suggested change
-[![GuardRails badge](https://api.guardrails.io/v2/badges/716795?token=0ed261234e4e51bfb9562d7161ce66cce193e4c9d9f9092cc8d0caf081e532fa)](https://dashboard.guardrails.io/gh/LCSOGthb/repos/716795)
+[![GuardRails badge](https://api.guardrails.io/v2/badges/716795)](https://dashboard.guardrails.io/gh/LCSOGthb/repos/716795)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@README.md` at line 74, The README contains an embedded GuardRails token in
the badge URL; remove the sensitive query parameter (the token) from the badge
link and replace it with the public/non-secret badge variant (or the documented
badge URL without tokens) and then rotate/expire the leaked token in GuardRails
to invalidate it; update the README link text to use the sanitized URL and
confirm the visible badge still works after the change.

@cubic-dev-ai cubic-dev-ai Bot May 25, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1: The GuardRails badge URL embeds a token= query parameter containing what appears to be an authentication credential. This token is permanently stored in git history and visible to anyone with access to the repo. Remove the token from the URL (use a tokenless badge endpoint if available), and rotate the exposed token in the GuardRails dashboard.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At README.md, line 74:

<comment>The GuardRails badge URL embeds a `token=` query parameter containing what appears to be an authentication credential. This token is permanently stored in git history and visible to anyone with access to the repo. Remove the token from the URL (use a tokenless badge endpoint if available), and rotate the exposed token in the GuardRails dashboard.</comment>

<file context>
@@ -69,3 +69,9 @@ CodeScene
 [![CodeScene System Mastery](https://codescene.io/projects/79939/status-badges/system-mastery)](https://codescene.io/projects/79939)
+
+GuardRails
+[![GuardRails badge](https://api.guardrails.io/v2/badges/716795?token=0ed261234e4e51bfb9562d7161ce66cce193e4c9d9f9092cc8d0caf081e532fa)](https://dashboard.guardrails.io/gh/LCSOGthb/repos/716795)
+
+Codeac
</file context>
Suggested change
[![GuardRails badge](https://api.guardrails.io/v2/badges/716795?token=0ed261234e4e51bfb9562d7161ce66cce193e4c9d9f9092cc8d0caf081e532fa)](https://dashboard.guardrails.io/gh/LCSOGthb/repos/716795)
[![GuardRails badge](https://api.guardrails.io/v2/badges/716795)](https://dashboard.guardrails.io/gh/LCSOGthb/repos/716795)
Fix with Cubic


Codeac
[![Codeac](https://static.codeac.io/badges/2-911551762.svg "Codeac")](https://app.codeac.io/github/LCSOGthb/Games)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The Codeac badge includes a title attribute ("Codeac"), which is redundant as it duplicates the alt text and is inconsistent with all other badges in this file. Removing it will ensure the README maintains a uniform style.

Suggested change
[![Codeac](https://static.codeac.io/badges/2-911551762.svg "Codeac")](https://app.codeac.io/github/LCSOGthb/Games)
[![Codeac](https://static.codeac.io/badges/2-911551762.svg)](https://app.codeac.io/github/LCSOGthb/Games)

Loading