getsentry / sentry-github-actions-app

This app allows your organization to instrument Github Actions with Sentry. You can use this to get insight of what parts of your CI are slow or failing often
MIT License
18 stars 8 forks source link

Try using workflow runs for the webhooks #30

Open armenzg opened 2 years ago

armenzg commented 2 years ago

We're currently using workflow jobs:

image

@asottile-sentry mentions that it is possible to use workflow runs for this app. This was not originally available when the prototype was written.

This could potentially save these extra two calls: https://github.com/getsentry/github-actions-app/blob/09c1a16e717ad750dc3b249ebb214356492c949b/src/github_sdk.py#L43-L44

That could potentially save more than 70% of the execution time:

image
armenzg commented 2 years ago

This may be necessary to avoid having to change permissions for external orgs.