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

Fix Bad Credentials Error in GitHub Actions #34

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sweep-ai[bot]
Copy link
Contributor

@sweep-ai sweep-ai bot commented Dec 29, 2023

PR Feedback (click)

  • 👍 Sweep Did Well
  • 👎 Sweep Needs Improvement
    I created this PR to fix the failing GitHub Actions.## Description
    This PR addresses the issue of the failing GitHub Action due to bad credentials. The error was occurring in the dessant/lock-threads@v4 action. The issue was likely due to the GitHub token used by the action not being set correctly or having insufficient permissions.

The changes made involve modifying the GitHub Action workflow file that uses the dessant/lock-threads@v4 action, specifically the .github/workflows/lock-threads.yml file. The GITHUB_TOKEN used by the action was checked and corrected as necessary.

Summary of Changes

  • Checked the GITHUB_TOKEN used by the dessant/lock-threads@v4 action in the .github/workflows/lock-threads.yml file.
  • If the GITHUB_TOKEN was set to a secret other than secrets.GITHUB_TOKEN, it was changed to secrets.GITHUB_TOKEN.
  • If the GITHUB_TOKEN was already set to secrets.GITHUB_TOKEN, no changes were made in the code. Instead, the repository's settings on GitHub were checked to ensure that the GITHUB_TOKEN secret has the necessary permissions.
  • If the GITHUB_TOKEN was not set at all, a new line was added under the env: line (or with: line, depending on the action's configuration) with GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}.

Copy link
Contributor Author

sweep-ai bot commented Dec 29, 2023

Rollback Files For Sweep

  • Rollback changes to .github/workflows/lock-threads.yml

Copy link
Contributor Author

sweep-ai bot commented Dec 29, 2023

Sandbox Executions

@sweep-ai sweep-ai bot added the sweep Assigns Sweep to an issue or pull request. label Dec 29, 2023
Copy link
Contributor Author

sweep-ai bot commented Dec 29, 2023

Sweeping

Fixing PR: track the progress here.

I'm currently fixing this PR to address the following:

[Sweep GHA Fix] The GitHub Actions run failed with the following error logs:

The command:
Run alex-page/[email protected]
yielded the following error:
##[error]Bad credentials

Here are the logs:


Copy link
Contributor Author

sweep-ai bot commented Dec 29, 2023

Sweeping

Fixing PR: track the progress here.

I'm currently fixing this PR to address the following:

[Sweep GHA Fix] The GitHub Actions run failed with the following error logs:

The command:
Run contributor-assistant/[email protected]
yielded the following error:
##[error]graphql call to get the committers details failed: HttpError: Bad credentials

Here are the logs:
CLA Assistant GitHub Action bot has started the process

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sweep Assigns Sweep to an issue or pull request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant