Skip to content
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
9 changes: 9 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import os
from dotenv import load_dotenv
import subprocess

#to trigger secret scanning
user = 'test'
Expand All @@ -10,7 +11,15 @@
google_api_token = "AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q"
gh_PAT = "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"


def dangerous(user_input):
# BAD: user input is passed directly to shell=True, which is dangerous!
subprocess.call(f"echo {user_input}", shell=True)

# main
if __name__ == '__main__':

print('hello Github world')

user_input = input("Enter something: ")
dangerous(user_input)