-
Notifications
You must be signed in to change notification settings - Fork 0
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
Migrate to GitHub artifacts #70
Comments
@saumier Please update the Artsdata databus API to accept Github Artifact URLs (these are zip files) for loading data. It would be great if you could also include an example CURL command that I can execute to call this API. Thanks! |
@dev-aravind I ran into a blocker. I was testing the Artsdata Databus with zip files, and I am unable to download a Github Archive using curl. I get the following "message": "You must have the actions scope to download artifacts." Even though the Github documentation says "This endpoint can be used without authentication or the aforementioned permissions if only public resources are requested." I didn't find a way to check if an artifact is public, and I can only assume that if the repo is public then the artifacts are public.
But this command works
|
@dev-aravind Based on the above blocker, we may have to go back to checking in the files until Github can fix the problem. |
@saumier you need to also pass a github token to download the artifact. For eg: curl -L -H "Authorization: token [token-value]" -o artifact.zip "https://api.github.com/repos/culturecreates/artsdata-planet-spektrix/actions/artifacts/1946145220/zip" Let me know if this works for you. |
@dev-aravind Thanks for the example curl with the token. In our scenario the Artsdata databus will not be able to get a token (which is very Github specific). The databus expects a download_url that does not require authentication. So for now we should go back to commits in the repo. In the mean time I will open a bug issue with Github so they don't require a token for downloading public artifacts as is stated in their documentation. I am closing this issue as "not planned" |
When running workflows using code in the Orion repo, the practice has been to commit artifacts as files to the repo, and then use the hash of the commit to generate the downloadURL sent to Artsdata Databus.
This issue is to replace the current practice with a feature on Github called Artifacts. This will facilitate reusing workflows, and it will provide dedicated URLs as download URLs for Artsdata Databus. Another advantage of Artifacts is that they are removed after a duration which we can configure. The default should be 1 week. The lifespan duration of the Artifact should also accept an optional parameter when passed in to the workflow. For example, if a workflow wants to maintain the artifact for 6 months it should be able to pass in 180 days.
The text was updated successfully, but these errors were encountered: