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

ci(surge-deploy): try to limit API rate limit errors #740

Merged
merged 6 commits into from
Jul 2, 2024

Conversation

rbioteau
Copy link
Member

@rbioteau rbioteau commented Jul 2, 2024

We currently have rate limit errors when deploying doc PR with surge.

Try using the BONITA_CI_PAT instead of GITHUB_TOKEN to avoid rate limit error

rbioteau added 3 commits July 2, 2024 09:27
We currently have rate limit errors when deploying doc PR with surge.

Try using the BONITA_CI_PAT to avoid rate limit error
@tbouffard tbouffard changed the title fix(deploy): Use Bonita CI PAT ci(surge-deploy): try to limit API rate limit errors Jul 2, 2024
@@ -24,6 +24,7 @@ jobs:
id: surge-preview-tools
with:
surge-token: ${{ secrets.SURGE_TOKEN_DOC }}
github-token: ${{ secrets.BONITA_CI_PAT }} # Avoid rate limiting produced with default GITHUB_TOKEN
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thought: The afc163/surge-preview action also do some GH API calls (it does the exact same call as the surge-preview-tools action)
So, it should probably use the PAT.
Notice that this will change the author of PR comment created/updated by the action from github-actions bot to bonita-ci bot. This has no impact for contributors.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems better with PAT after some tests on bonita-doc pr

rbioteau and others added 3 commits July 2, 2024 11:28
Copy link

sonarqubecloud bot commented Jul 2, 2024

@tbouffard tbouffard merged commit 1cb36b4 into master Jul 2, 2024
3 checks passed
@tbouffard tbouffard deleted the fix/surge_preview branch July 2, 2024 11:05
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