Open sweep-ai[bot] opened 9 months ago
.github/workflows/help-comment-issue.yml
✓
Check .github/workflows/help-comment-issue.yml with contents:
Ran GitHub Actions for 35c9081b8e8a7cc9adedcce3c3fe881719db73b4:
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/github-action@v2.3.0 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 ```
Making changes according to plan... (step 3/3)
PR Feedback (click)
help-comment-issue.yml
workflow to check if theBOT_GITHUB_TOKEN
secret is set and valid. This is done to prevent the workflow from failing due to bad credentials.The validation is done by trying to fetch the repository's details using the
octokit.rest.repos.get
method with theBOT_GITHUB_TOKEN
as the authentication token. If the fetch operation fails, the workflow fails with an error message indicating that theBOT_GITHUB_TOKEN
secret is not set or invalid.Summary of Changes
help-comment-issue.yml
workflow to validate theBOT_GITHUB_TOKEN
secret.actions/github-script@v3
action to run a script that checks the validity of the token.