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 Failing GitHub Action Due to Bad Credentials #180

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

sweep-ai[bot]
Copy link
Contributor

@sweep-ai sweep-ai bot commented Jan 4, 2024

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 failure was occurring in the [email protected] action.

The changes made involve updating the workflow file that uses the [email protected] action to ensure that it is using the correct credentials. This involved checking the parameters that are being passed to this action and ensuring that they are being set correctly.

Summary of Changes

  • Identified the line where [email protected] is being used in the .github/workflows/failing_workflow.yml file.
  • Checked the parameters being passed to this action. Updated the credentials parameter to reference the correct secret stored in the repository's settings.
  • Checked the documentation for [email protected] to ensure there were no known issues or updates that needed to be made.
  • Updated the version of issues-translate-action being used to the latest version.

These changes should resolve the issue with the failing GitHub Action. The next run of the GitHub Actions will be monitored to confirm that the issue has been resolved.

@sweep-ai sweep-ai bot assigned cubxxw Jan 4, 2024
Copy link
Contributor Author

sweep-ai bot commented Jan 4, 2024

Rollback Files For Sweep

  • Rollback changes to .github/workflows/failing_workflow.yml

@sweep-ai sweep-ai bot added the sweep label Jan 4, 2024
Copy link
Contributor Author

sweep-ai bot commented Jan 4, 2024

Sandbox Executions

Copy link

cla-assistant bot commented Jan 4, 2024

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.

Copy link

cla-assistant bot commented Jan 4, 2024

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.

Copy link
Contributor Author

sweep-ai bot commented Jan 4, 2024

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:


[!CAUTION]

An error has occurred: 422 {"message": "Reference already exists", "documentation_url": "https://docs.github.com/rest/git/refs#create-a-reference"} (tracking ID: b15cb673cd)

Copy link
Contributor Author

sweep-ai bot commented Jan 4, 2024

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

[!CAUTION]

An error has occurred: 422 {"message": "Reference already exists", "documentation_url": "https://docs.github.com/rest/git/refs#create-a-reference"} (tracking ID: e659c24203)

Copy link
Contributor Author

sweep-ai bot commented Jan 4, 2024

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 release-drafter/release-drafter@v5
yielded the following error:
##[error]Invalid config file
##[warning]openimsdk/community: Invalid config file
{
 name: 'event',
 id: '7405149585',
 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: '7405149585',
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 /home/runner/work/_actions/release-drafter/release-drafter/v5/dist/index.js:142240:22\n' +
'    at async Promise.all (index 0)',
type: 'Error'
}

[!CAUTION]

An error has occurred: 422 {"message": "Reference already exists", "documentation_url": "https://docs.github.com/rest/git/refs#create-a-reference"} (tracking ID: fe19899023)

Copy link
Contributor Author

sweep-ai bot commented Jan 4, 2024

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 actions/checkout@v2
yielded the following error:
##[error]The operation was canceled.
##[group]Run make tidy
�[36;1mmake tidy�[0m
shell: /usr/bin/bash -e {0}
env:
  GO_VERSION: 1.19
  GOLANGCI_VERSION: v1.50.1
  GOROOT: /opt/hostedtoolcache/go/1.20.12/x64
##[endgroup]
Tidying up the project...
tidying_command_here
make: tidying_command_here: No such file or directory
make: *** [Makefile:43: tidy] Error 127
##[error]Process completed with exit code 2.
##[group]Run make tidy
�[36;1mmake tidy�[0m
shell: /usr/bin/bash -e {0}
env:
  GO_VERSION: 1.19
  GOLANGCI_VERSION: v1.50.1
  GOROOT: /opt/hostedtoolcache/go/1.19.13/x64
##[endgroup]
Tidying up the project...
tidying_command_here
make: tidying_command_here: No such file or directory
make: *** [Makefile:43: tidy] Error 127
##[error]Process completed with exit code 2.

Here are the logs:
Syncing repository: openimsdk/community
##[group]Getting Git version info
Working directory is '/home/runner/work/community/community'
git version 2.43.0
##[endgroup]
Temporarily overriding HOME='/home/runner/work/_temp/35cd9a67-fcea-4912-afc8-0d58f2d718ff' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
Deleting the contents of '/home/runner/work/community/community'
##[group]Initializing the repository
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
Initialized empty Git repository in /home/runner/work/community/community/.git/
##[endgroup]
##[group]Disabling automatic garbage collection
##[endgroup]
##[group]Setting up auth
##[endgroup]
##[group]Fetching the repository

[!CAUTION]

An error has occurred: 422 {"message": "Reference already exists", "documentation_url": "https://docs.github.com/rest/git/refs#create-a-reference"} (tracking ID: 76e1a79d48)

Copy link
Contributor Author

sweep-ai bot commented Jan 4, 2024

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:
Operating System
yielded the following error:
##[error]Unable to resolve action `dromara/[email protected]`, unable to find version `v2.8`
Requested labels: ubuntu-latest
Job defined at: openimsdk/community/.github/workflows/failing_workflow.yml@refs/pull/180/merge
Waiting for a runner to pick up this job...
Job is waiting for a hosted runner to come online.
Job is about to start running on the hosted runner: GitHub Actions 13 (hosted)
Current runner version: '2.311.0'
##[group]Operating System
Ubuntu
22.04.3
LTS
##[endgroup]
##[group]Runner Image
Image: ubuntu-22.04
Version: 20231217.2.0
Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20231217.2/images/ubuntu/Ubuntu2204-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20231217.2
##[endgroup]
##[group]Runner Image Provisioner
2.0.321.1
##[endgroup]
##[group]GITHUB_TOKEN Permissions
Actions: write
Checks: write
Contents: write
Deployments: write
Discussions: write
Issues: write
Metadata: read
Packages: write
Pages: write
PullRequests: write
RepositoryProjects: write
SecurityEvents: write
Statuses: write
##[endgroup]
Secret source: Actions
Prepare workflow directory
Prepare all required actions
Getting action download info
##[error]Unable to resolve action `dromara/[email protected]`, unable to find version `v2.8`

Here are the logs:
##[group]Runner Image
Image: ubuntu-22.04
Version: 20231217.2.0
Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20231217.2/images/ubuntu/Ubuntu2204-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20231217.2
##[endgroup]
##[group]Runner Image Provisioner
2.0.321.1
##[endgroup]
##[group]GITHUB_TOKEN Permissions
Actions: write
Checks: write
Contents: write
Deployments: write
Discussions: write
Issues: write
Metadata: read
Packages: write
Pages: write
PullRequests: write
RepositoryProjects: write
SecurityEvents: write
Statuses: write
##[endgroup]
Secret source: Actions
Prepare workflow directory
Prepare all required actions
Getting action download info

[!CAUTION]

An error has occurred: 422 {"message": "Reference already exists", "documentation_url": "https://docs.github.com/rest/git/refs#create-a-reference"} (tracking ID: e30a1b1990)

Copy link
Contributor Author

sweep-ai bot commented Jan 4, 2024

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 sudo make tidy
yielded the following error:
##[error]Process completed with exit code 2.
##[group]Run sudo make tidy
�[36;1msudo make tidy�[0m
�[36;1msudo make tools.verify.go-gitlint�[0m
shell: /usr/bin/bash -e {0}
env:
  GO_VERSION: 1.19
  GOLANGCI_VERSION: v1.50.1
##[endgroup]
Tidying up the project...
tidying_command_here
make: tidying_command_here: No such file or directory
make: *** [Makefile:43: tidy] Error 127
##[error]Process completed with exit code 2.
##[group]Run sudo make init
�[36;1msudo make init�[0m
�[36;1msudo make image�[0m
shell: /usr/bin/bash -e {0}
env:
  GO_VERSION: 1.19
  GOLANGCI_VERSION: v1.50.1
##[endgroup]
Updating package manager...
sudo apt-get update
Get:1 file:/etc/apt/apt-mirrors.txt Mirrorlist [142 B]
Hit:2 http://azure.archive.ubuntu.com/ubuntu jammy InRelease
Get:3 http://azure.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Hit:4 http://azure.archive.ubuntu.com/ubuntu jammy-backports InRelease
Get:5 http://azure.archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:6 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease [3631 B]
Get:7 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1263 kB]
Get:8 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1020 kB]
Get:9 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [226 kB]
Hit:10 https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu jammy InRelease
Get:11 http://azure.archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages [1051 kB]
Get:12 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [823 kB]
Fetched 4615 kB in 1s (4751 kB/s)
Reading package lists...
Installing essential tools...
sudo apt-get install -y curl git
Reading package lists...
Building dependency tree...
Reading state information...
curl is already the newest version (7.81.0-1ubuntu1.15).
git is already the newest version (1:2.43.0-0ppa1~ubuntu22.04.1).
0 upgraded, 0 newly installed, 0 to remove and 34 not upgraded.
# Check for the existence of the configuration file before using it
Error: Configuration file not found
make: *** [Makefile:12: init] Error 1
##[error]Process completed with exit code 2.
##[group]Run sudo make tidy
�[36;1msudo make tidy�[0m
�[36;1msudo make tools.verify.go-gitlint�[0m
shell: /usr/bin/bash -e {0}
env:
  GO_VERSION: 1.19
  GOLANGCI_VERSION: v1.50.1
##[endgroup]
Tidying up the project...
tidying_command_here
make: tidying_command_here: No such file or directory
make: *** [Makefile:43: tidy] Error 127
##[error]Process completed with exit code 2.
##[group]Run sudo make init
�[36;1msudo make init�[0m
�[36;1msudo docker compose up -d�[0m
�[36;1msudo sleep 20�[0m
shell: /usr/bin/bash -e {0}
env:
  GO_VERSION: 1.19
  GOLANGCI_VERSION: v1.50.1
##[endgroup]
Updating package manager...
sudo apt-get update
Get:1 file:/etc/apt/apt-mirrors.txt Mirrorlist [142 B]
Hit:2 http://azure.archive.ubuntu.com/ubuntu jammy InRelease
Get:6 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease [3631 B]
Get:3 http://azure.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Hit:4 http://azure.archive.ubuntu.com/ubuntu jammy-backports InRelease
Get:5 http://azure.archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:7 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1263 kB]
Get:8 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1020 kB]
Get:9 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [226 kB]
Get:10 http://azure.archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages [1051 kB]
Get:11 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [823 kB]
Hit:12 https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu jammy InRelease
Fetched 4615 kB in 1s (5442 kB/s)
Reading package lists...
Installing essential tools...
sudo apt-get install -y curl git
Reading package lists...
Building dependency tree...
Reading state information...
curl is already the newest version (7.81.0-1ubuntu1.15).
git is already the newest version (1:2.43.0-0ppa1~ubuntu22.04.1).
0 upgraded, 0 newly installed, 0 to remove and 34 not upgraded.
# Check for the existence of the configuration file before using it
Error: Configuration file not found
make: *** [Makefile:12: init] Error 1
##[error]Process completed with exit code 2.
##[group]Run sudo make install
�[36;1msudo make install�[0m
shell: /usr/bin/bash -e {0}
env:
  GO_VERSION: 1.19
  GOLANGCI_VERSION: v1.50.1
##[endgroup]
make: *** No rule to make target 'install'.  Stop.
##[error]Process completed with exit code 2.

Here are the logs:
Tidying up the project...
tidying_command_here
make: tidying_command_here: No such file or directory
make: *** [Makefile:43: tidy] Error 127

[!CAUTION]

An error has occurred: 422 {"message": "Reference already exists", "documentation_url": "https://docs.github.com/rest/git/refs#create-a-reference"} (tracking ID: e1618cc9e2)

Copy link
Contributor Author

sweep-ai bot commented Jan 4, 2024

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 sudo make init
yielded the following error:
##[error]Process completed with exit code 2.

Here are the logs:
Updating package manager...
sudo apt-get update
Get:1 file:/etc/apt/apt-mirrors.txt Mirrorlist [142 B]
Hit:2 http://azure.archive.ubuntu.com/ubuntu jammy InRelease
Get:3 http://azure.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Hit:4 http://azure.archive.ubuntu.com/ubuntu jammy-backports InRelease
Get:5 http://azure.archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:6 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease [3631 B]
Get:7 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1263 kB]
Get:8 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1020 kB]
Get:9 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [226 kB]
Get:10 http://azure.archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages [1051 kB]
Get:11 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [823 kB]
Hit:12 https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu jammy InRelease
Fetched 4615 kB in 1s (5576 kB/s)
Reading package lists...
sudo apt-get install -y curl git
Reading package lists...
Building dependency tree...
Reading state information...
curl is already the newest version (7.81.0-1ubuntu1.15).
git is already the newest version (1:2.43.0-0ppa1~ubuntu22.04.1).
0 upgraded, 0 newly installed, 0 to remove and 34 not upgraded.
# Check for the existence of the configuration file before using it
Error: Configuration file not found
make: *** [Makefile:12: init] Error 1

[!CAUTION]

An error has occurred: 422 {"message": "Reference already exists", "documentation_url": "https://docs.github.com/rest/git/refs#create-a-reference"} (tracking ID: 2e0194169a)

Copy link
Contributor Author

sweep-ai bot commented Jan 4, 2024

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 github/codeql-action/analyze@v2
yielded the following error:
##[error]Encountered a fatal error while running "/opt/hostedtoolcache/CodeQL/2.15.4/x64/codeql/codeql database finalize --finalize-dataset --threads=4 --ram=14567 /home/runner/work/_temp/codeql_databases/go". Exit code was 32 and last log line was: CodeQL detected code written in , but not any written in Go. Review our troubleshooting guide at https://gh.io/troubleshooting-code-scanning/no-source-code-seen-during-build . See the logs for more details.

Here are the logs:
[command]/opt/hostedtoolcache/CodeQL/2.15.4/x64/codeql/codeql version --format=json
{
"productName" : "CodeQL",
"vendor" : "GitHub",
"version" : "2.15.4",
"sha" : "6994dfd6d94ee3d205768fbe15e18312bf22b388",
"branches" : [
"codeql-cli-2.15.4"
],
"copyright" : "Copyright (C) 2019-2023 GitHub, Inc.",
"unpackedLocation" : "/opt/hostedtoolcache/CodeQL/2.15.4/x64/codeql",
"configFileLocation" : "/home/runner/.config/codeql/config",
"configFileFound" : false,
"features" : {
"analysisSummaryV2Option" : true,
"featuresInVersionResult" : true,
"indirectTracingSupportsStaticBinaries" : false,
"supportsPython312" : true,
"mrvaPackCreate" : true,
"threatModelOption" : true
}
}
##[group]Finalizing go
[command]/opt/hostedtoolcache/CodeQL/2.15.4/x64/codeql/codeql database finalize --finalize-dataset --threads=4 --ram=14567 /home/runner/work/_temp/codeql_databases/go
CodeQL detected code written in , but not any written in Go. Review our troubleshooting guide at https://gh.io/troubleshooting-code-scanning/no-source-code-seen-during-build .

[!CAUTION]

An error has occurred: Message is too long, max tokens is -6635 (tracking ID: 07efa11045)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants