community
community copied to clipboard
Fix GitHub Actions Credentials Error
PR Feedback (click)
- [ ] 👍 Sweep Did Well
- [ ] 👎 Sweep Needs Improvement I created this PR to fix the failing GitHub Actions.## Description This PR fixes the "Bad credentials" error that was occurring when the 'Lock Threads' GitHub Actions workflow was run. The error was due to the 'BOT_GITHUB_TOKEN' secret being either missing or incorrect.
The 'github-token' parameter of the dessant/lock-threads@v4 action, which was previously set to use the 'BOT_GITHUB_TOKEN' secret, has been updated to use the 'GITHUB_TOKEN' secret. The 'GITHUB_TOKEN' is a special secret that GitHub automatically creates for every repository, and it has the necessary permissions to run actions.
Summary of Changes
- Modified the .github/workflows/lock-issue.yml file to use the 'GITHUB_TOKEN' secret for the 'github-token' parameter of the dessant/lock-threads@v4 action.
Please note that if the 'BOT_GITHUB_TOKEN' was intended to be used and it's missing, you should create it in the repository's secrets settings and ensure it has the necessary permissions.
Rollback Files For Sweep
- [ ] Rollback changes to .github/workflows/lock-issue.yml
- [ ] Rollback changes to .github/workflows/lock-issue.yml
Sandbox Executions
- [X] Running GitHub Actions for
.github/workflows/lock-issue.yml✓
Check .github/workflows/lock-issue.yml with contents:Ran GitHub Actions for 1dfe2ad240137f95fee1491674d40c55dab28766:
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.
The command:
Run alex-page/[email protected]
yielded the following error:
##[error]Bad credentials
Here are the logs:
🚀 Wrote Changes
I wasn't able to make changes. This could be due to an unclear request or a bug in my code. As a reminder, comments on a file only modify that file. Comments on a PR (at the bottom of the "conversation" tab) can modify the entire PR. Please try again or contact us on Discord