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

Remove 'post comment' step from benchmark action #109

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

tompollard
Copy link
Contributor

When a pull request comes from a forked repository, the "Post results to pull request" action in the Benchmark.yml workflow fails (e.g. see: #105).

The issue is that the GITHUB_TOKEN provided by GitHub Actions only has read permissions. This can be fixed by adding a custom token, but it is quicker and easier to remove the post results step, which is what I am doing here!

The benchmark results should still be posted in the output of the github action, so it's not a big loss.

The workflow fails with a permission error when a pull request is opened from an external repository. This can be fixed by adding a personal token to the workflow, but removing the step is easier
@tompollard tompollard requested a review from briangow November 4, 2024 17:07
@briangow
Copy link
Collaborator

briangow commented Nov 4, 2024

Thanks @tompollard !

@briangow briangow merged commit 70fba60 into main Nov 4, 2024
1 check passed
@tompollard tompollard deleted the tp/update_benchmark_workflow branch November 4, 2024 22:02
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