Skip to content
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

Improve example for uploading artifacts. #229

Merged
merged 1 commit into from
Dec 25, 2021
Merged

Improve example for uploading artifacts. #229

merged 1 commit into from
Dec 25, 2021

Conversation

YungBinary
Copy link
Contributor

Proposed changes

  • Improve example for uploading artifacts.

Checklist

  • I consider the submitted work as finished
  • I tested the code for its functionality
  • I wrote test cases for the relevant uses case
  • I added/update the relevant documentation (either on github or on notion)
  • Where necessary I refactored code to improve the overall quality

Further comments

These changes were made as improvements to the original upload_artifact.py example script. Now a user of this script can specify via command line what file or directory containing files they would like to upload, related files, and labels.

Copy link
Contributor

@nor3th nor3th left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @YungBinary

Thanks a lot for the PR!! Please adapt the mentioned code fragment, since assigning mutable objects to a global constant is not the ideal approach.

Regards

@nor3th nor3th merged commit e1dd9b3 into OpenCTI-Platform:master Dec 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants