Skip to content
This repository was archived by the owner on Aug 20, 2025. It is now read-only.
Open
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
13 changes: 12 additions & 1 deletion GithubTest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
from github import Github

from fake import database
g = Github( ${{Pygithub.secrets}} )

for repo in g.get_user().get_repos():
print(repo.name)

def get_user_by_email(email):
query = "SELECT * FROM users WHERE email = '{}';".format(email)
return query

# Example of user input that would simulate SQL injection
malicious_input = "'; DROP TABLE users; --"
q = get_user_by_email(malicious_input)
print(q)
db.query(q)