-
-
Notifications
You must be signed in to change notification settings - Fork 11
test: validate QWED Security v1.1 scanner across all engines #214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
4ce729a
c083d33
0e4dd90
ada4162
50d8d4f
837094c
15e917f
9dd27e6
840b0fb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| treat_unknown_as_block: true | ||
| ignore_patterns_in_tests: true | ||
|
Comment on lines
+1
to
+2
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Quality: Unknown config keys in .qwed.yml are not consumed by codebaseNeither Was this helpful? React with 👍 / 👎 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
If test-file detection uses the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The Suggested FixImplement the logic in Prompt for AI AgentAlso affects:
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| const display = (text) => { | ||
| document.getElementById("out").textContent = text; | ||
| }; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| """Demonstrates QWED Security scanning capabilities.""" | ||
|
greptile-apps[bot] marked this conversation as resolved.
Outdated
|
||
|
|
||
| API_KEY = "QWED_TEST_DEMO_VALUE" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔒 Security & Privacy | 🟠 Major | ⚡ Quick win Remove the credential-shaped test constant. Line 3 is classified as hardcoded credential-like material, and the QWED pipeline blocks it rather than emitting the expected advisory. Use a clearly non-credential test marker or move this case into a dedicated scanner fixture with an explicit test contract; do not weaken global scanning. As per path instructions, enforcement must remain deterministic and fail-closed. 🧰 Tools🪛 GitHub Check: QWED Security[error] 3-3: QWED Blocked finding: Hardcoded credential-like material detected (context: TEST_CODE). 🤖 Prompt for AI AgentsSources: Path instructions, Linters/SAST tools, Pipeline failures |
||
|
|
||
|
|
||
| def run_demo(): | ||
| user_data = input("Enter expression: ") | ||
| print(f"You entered: {user_data}") | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ignore_patterns_in_tests: trueinstructs the security scanner to skip pattern-based scans for files considered tests. In a security-verification product this is a meaningful regression: secrets, dangerous sinks, or malicious code placed in any file matching a test path would evade detection. Note the accompanying test file is namedqwed_security_test.py, which would fall under this exclusion. Recommend removing this key (or scoping it very narrowly) so scanning stays fail-closed for all paths.Was this helpful? React with 👍 / 👎