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

Replace all GraphQL calls with REST API calls #224

Closed
wants to merge 1 commit into from

Conversation

jdbaldry
Copy link
Member

The default GitHub Actions app token, secrets.GITHUB_TOKEN, cannot make GraphQL calls. Without this patch, the cherry-pick and PR opening succeeds but then a confusing error comment is posted back on the original PR like in https://github.com/grafana/pyroscope/actions/runs/10606280342/job/29396725224?pr=3526.

Removing the GraphQL call means that this workflow doesn't require GitHub App creation for each repository that wants to use it.

The default GitHub Actions app token, `secrets.GITHUB_TOKEN`, cannot make GraphQL calls.
Without this patch, the cherry-pick and PR opening succeeds but then a confusing error comment is posted back on the original PR like in https://github.com/grafana/pyroscope/actions/runs/10606280342/job/29396725224?pr=3526.

Removing the GraphQL call means that this workflow doesn't require GitHub App creation for each repository that wants to use it.

Signed-off-by: Jack Baldry <[email protected]>
jdbaldry added a commit to jdbaldry/pyroscope that referenced this pull request Sep 12, 2024
jdbaldry added a commit to jdbaldry/pyroscope that referenced this pull request Sep 12, 2024
aleks-p pushed a commit to grafana/pyroscope that referenced this pull request Sep 12, 2024
github-actions bot pushed a commit to grafana/pyroscope that referenced this pull request Sep 12, 2024
…3551)

For more information, refer to grafana/grafana-github-actions#224.

Signed-off-by: Jack Baldry <[email protected]>
(cherry picked from commit 6819c91)
@jdbaldry
Copy link
Member Author

This is not the problem. PATs can make GraphQL calls

@jdbaldry jdbaldry closed this Sep 18, 2024
@jdbaldry jdbaldry deleted the jdb/2024-09-replace-graphql-with-rest branch September 18, 2024 11:31
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.

1 participant