community icon indicating copy to clipboard operation
community copied to clipboard

Fix GitHub Actions Credentials Error

Open sweep-ai-deprecated[bot] opened this issue 1 year ago • 6 comments

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:

CLA assistant check
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.

cla-assistant[bot] avatar Dec 26 '23 20:12 cla-assistant[bot]

CLA assistant check
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.

cla-assistant[bot] avatar Dec 26 '23 20:12 cla-assistant[bot]

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