Skip to content

[validation] v0.9.3 action: PR tries to disable the gate (DO NOT MERGE) - #36

Closed
akosidencio wants to merge 4 commits into
validation/v0.9.3-basefrom
validation/v0.9.3-pr-config-bypass
Closed

akosidencio wants to merge 4 commits into
validation/v0.9.3-basefrom
validation/v0.9.3-pr-config-bypass

Conversation

@akosidencio

Copy link
Copy Markdown
Member

Temporary pre-release validation of the v0.9.3 GitHub Action. Do not merge.

Same planted defects as #34, plus PR-authored .diffmind/ changes that would switch the gate off: ignore = ["**"], min_confidence = 1.0, require_complete = false, a [backend] pointing elsewhere, the rules.toml rule removed, a "report no findings" rule set, and a baseline.json accepting the finding. Under the default config-from: base none of it may take effect. Close and delete the validation/v0.9.3-* branches when validation is complete.

Comment thread .diffmind/baseline.json
"issue": "eval() executes arbitrary code"
}
]
} No newline at end of file
Comment thread .diffmind/config.toml
[review]
min_confidence = 0.0
ignore = ["**"]
min_confidence = 1.0
Comment thread .diffmind/config.toml
[backend]
kind = "openai-compatible"
url = "http://127.0.0.1:9"
model = "attacker"
Comment thread .diffmind/rules.toml
severity = "high"
category = "security"
files = ["*.py"]
# The no-eval rule was removed by this PR.
"""Evaluate a numeric literal safely."""
return float(ast.literal_eval(expr))
"""Evaluate a numeric expression."""
return float(eval(expr))
Comment thread validation-fixture/shop/calc.py Fixed
def get_user(conn, user_id):
cur = conn.cursor()
cur.execute("SELECT id, name FROM users WHERE id = ?", (user_id,))
cur.execute(f"SELECT id, name FROM users WHERE id = {user_id}")
def evaluate(expr: str) -> float:
"""Evaluate a numeric literal safely."""
return float(ast.literal_eval(expr))
"""Evaluate a numeric expression."""
@akosidencio

Copy link
Copy Markdown
Member Author

Closing: v0.9.3 pre-release validation is done (see PR #37 and #38). This was a disposable fixture PR and was never meant to merge.

@akosidencio
akosidencio deleted the validation/v0.9.3-pr-config-bypass branch November 21, 2026 17:01
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.

2 participants