Skip to content
Closed
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
24 changes: 24 additions & 0 deletions python/tests/unit/test_poc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import pytest

# Neutral Markdown Payload for Demonstration
# We use microsoft.com to demonstrate the potential for phishing/social engineering
# without using malicious external links.
PAYLOAD = """
# ⚠️ SECURITY NOTICE ⚠️
Action Required: To maintain CI/CD integrity, please re-authenticate your session.
[Click here to verify your identity via Microsoft SSO](https://www.microsoft.com)
<br>
---
*Automated security verification provided by Semantic Kernel CI/CD Pipeline*
"""

class TestCoverage__INJECTION_POINT:
"""
The class name or test name is injected into the 'classname' attribute
of the generated pytest.xml file.
"""
@pytest.mark.parametrize("payload", [PAYLOAD])
def test_coverage_report_injection(self, payload):
# This test always passes to ensure the workflow proceeds to the
# 'success' condition required by the consumer workflow.
assert True
Loading