-
Notifications
You must be signed in to change notification settings - Fork 25
Enhance security and safeguard for Zenodo uploads. #626
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
Conversation
+ No longer read password from cli or env var.
Codecov Report✅ All modified and coverable lines are covered by tests.
... and 13 files with indirect coverage changes 🚀 New features to boost your workflow:
|
sandbox=params.pop("sandbox"), | ||
access_token=params.pop("access_token"), | ||
) | ||
with handle_exception(PipelineSearchWorkflow(**params)) as workflow: |
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.
Can we have the Zenodo-related workflows accept sandbox
and password_file
directly (instead of the Zenodo API)? So that the CLI command does exactly the same thing as the workflow class
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.
There is a failing test due to nested quotes but I think I can fix it
if not continue_: | ||
self.logger.info("Zenodo upload cancelled.") | ||
raise SystemExit(1) |
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.
🍒 we could mock this to get 100% test coverage
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.
🧑🍳
Changes proposed in this pull request:
Checklist (for reviewers)
This section is for the PR reviewer
[BUG]
,[DOC]
,[ENH]
,[MAINT]
)Refer to NumPy Development Guide for a full list
Closes #XXXX
For new features:
For bug fixes:
📚 Documentation preview 📚: https://nipoppy--626.org.readthedocs.build/en/626/