community
community copied to clipboard
Fix GitHub Actions Authentication Issue
PR Feedback (click)
- [ ] 👍 Sweep Did Well
- [ ] 👎 Sweep Needs Improvement
I created this PR to address this rule:
"None"
Description
This PR addresses the issue of GitHub Actions failing due to bad credentials. The problem was identified to be related to the authentication token used in the GitHub Actions workflow.
Changes were made to the GitHub Actions workflow file to ensure the correct token is being used and that it has the necessary permissions. The default GITHUB_TOKEN provided by GitHub for Actions workflows was used as it has the necessary permissions for most operations.
In cases where the workflow requires permissions beyond those provided by the default GITHUB_TOKEN, a personal access token with the necessary permissions was created and added to the repository's secrets. The token was then used in the workflow file.
Summary of Changes
- Modified the GitHub Actions workflow file to use the correct authentication token.
- Ensured the token is being used correctly in all parts of the workflow where it is needed.
- Created and added a personal access token to the repository's secrets in cases where additional permissions were required.
These changes should resolve the issue of GitHub Actions failing due to bad credentials.
Rollback Files For Sweep
- [ ] Rollback changes to path_to_GitHub_Actions_workflow_file
Sandbox Executions
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 release-drafter/release-drafter@v5
yielded the following error:
##[error]Invalid config file ##[warning]openimsdk/community: Invalid config file { name: 'event', id: '7331727580', stack: 'Error: Configuration file .github/release-drafter.yml is not found. The configuration file must reside in your default branch.\n' + ' at getConfig (/home/runner/work/_actions/release-drafter/release-drafter/v5/dist/index.js:142745:13)\n' + ' at async drafter (/home/runner/work/_actions/release-drafter/release-drafter/v5/dist/index.js:142339:20)\n' + ' at async Promise.all (index 1)', type: 'Error' } ##[error]Invalid config file
Here are the logs:
"pull_request_target.opened" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)
"pull_request_target.reopened" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)
"pull_request_target.synchronize" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)
"pull_request_target.edited" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)
##[warning]openimsdk/community: Invalid config file
{
name: 'event',
id: '7331727580',
stack: 'Error: Configuration file .github/release-drafter.yml is not found. The configuration file must reside in your default branch.\n' +
' at getConfig (/home/runner/work/_actions/release-drafter/release-drafter/v5/dist/index.js:142745:13)\n' +
' at runNextTicks (node:internal/process/task_queues:61:5)\n' +
' at listOnTimeout (node:internal/timers:528:9)\n' +
' at processTimers (node:internal/timers:502:7)\n' +
' at async /home/runner/work/_actions/release-drafter/release-drafter/v5/dist/index.js:142240:22\n' +
' at async Promise.all (index 0)',
type: 'Error'
}
The command:
Run alex-page/[email protected]
yielded the following error:
##[error]Bad credentials
Here are the 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