Feature request: Please include artifacts url in the workflow_run event payload #34397
Unanswered
nareshbulusu
asked this question in
API and Webhooks
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I configure a webhook to be triggered by the "workflow_run" event, I am getting an "artifacts_url" as a part of the payload.
![image](https://user-images.githubusercontent.com/13373929/192657058-a135956a-48a1-4db5-8f89-54d1c83bf775.png)
However, I cannot use this to directly download the artifact. I need to make a separate download an artifact API call to get the download URL.
When I check the GitHub Actions runs page, the "Artifacts" section displays the artifact with a URL that looks like https://github.com//<REPOSITORY_NAME>/suites/<CHECK_SUITE_ID>/artifacts/<ARTIFACT_ID>
If I can extract CHECK_SUITE_ID and ARTIFACT_ID from the webhook payload, I could construct the URL myself. However, only CHECK_SUITE_ID is available and ARTIFACT_ID is not available in the payload.
Please add this URL to the webhook payload so that we don't have to make a separate API call to scrape the same. We are trying to build a pub-sub model for GitHub events and this feature will allow us to build a cleaner setup.
Beta Was this translation helpful? Give feedback.
All reactions