-
Notifications
You must be signed in to change notification settings - Fork 4
feat: add scripts for dojo management tasks #55
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
base: main
Are you sure you want to change the base?
Conversation
dojo/scripts/SEND_EMAILS.md
Outdated
@@ -0,0 +1,10 @@ | |||
### Email Sending |
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.
dojo/scripts/send_emails.py
Outdated
SENDER = f"CHANGE_FOR_THE_USER_TO_APPEAR <{SMTP_USER}>" | ||
USERS_FILE = "user_credentials.txt" | ||
|
||
EMAIL_TEMPLATE = """\ |
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.
Let break the e-mail sendingn function into a separate module that we can later import into other scripts.
This way I could use it to send other e-mails (e.g., like the welcome message I sent on Tuesday).
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.
create_users script looks good, but it seems we need some additional code to split the vulnerabilities into different products.
@cunha, I updated the scripts for the flow of:
With the possibility of skipping steps of the flow if necessary. |
This PR adds two scripts for:
create_users_and_products.py
);send_emails.py
);.