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

support download option for upload command #51

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

viveksahu26
Copy link

@viveksahu26 viveksahu26 commented Nov 13, 2024

closes #44

This PR adds support for the --download and --output flag in the upload command. With this option, the SBOM will be automatically downloaded as soon as the automationRunStatus is completed.

How it works:

  • First, the SBOM is uploaded successfully and server returns the sbom_id(or version id) of the uploaded sbom.
  • Now using version_id, it checks the status.
  • Once automationRunStatus is marked as completed, the SBOM is downloaded.
  • now user can provide output option to download the file

Command to diwnload sbom in the stdout

  • python3 pylynk.py upload --prodId e9e45794-82ac-4af5-959b-7a84875e9b69 --download --sbom sbomqs-fossa.json

Command to diwnload sbom in the file

  • python3 pylynk.py upload --prodId e9e45794-82ac-4af5-959b-7a84875e9b69 --download --output demo.json --sbom sbomqs-fossa.json

@viveksahu26 viveksahu26 force-pushed the feature/add_download_flag branch from 5a6b30b to 47307d5 Compare November 15, 2024 20:14
Signed-off-by: Vivek Kumar Sahu <[email protected]>
@viveksahu26 viveksahu26 force-pushed the feature/add_download_flag branch from e904bc0 to 91c2b10 Compare November 18, 2024 10:40
@viveksahu26 viveksahu26 force-pushed the feature/add_download_flag branch from d802213 to 2e61ab4 Compare December 19, 2024 11:00
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.

Upload with automated download
1 participant