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 GitHub Actions Failure Due to Missing go-gitlint Tool #163

Closed
wants to merge 3 commits into from

Conversation

sweep-ai[bot]
Copy link
Contributor

@sweep-ai sweep-ai bot commented Dec 31, 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 GitHub Actions failing due to the absence of the go-gitlint tool. The commit-msg hook script has been modified to download and install the go-gitlint tool if it is not found. If the installation fails, an informative error message is printed and the script exits with a non-zero exit status.

The pre-commit hook script has also been modified to check for the presence of the go-gitlint tool and print an informative error message if it is not found. If the commit-msg hook fails, the pre-commit hook script now prints an informative error message and exits with a non-zero exit status.

Summary of Changes

  • Modified the commit-msg hook script to download and install the go-gitlint tool if it is not found.
  • Added a check for the exit status of the installation commands in the commit-msg hook script.
  • Modified the error message in the commit-msg hook script to provide more information about the cause of the failure and how to fix it.
  • Modified the pre-commit hook script to check for the presence of the go-gitlint tool and print an informative error message if it is not found.
  • Added a check for the exit status of the commit-msg hook in the pre-commit hook script.

@sweep-ai sweep-ai bot requested review from cubxxw and kubbot as code owners December 31, 2023 02:30
Copy link
Contributor Author

sweep-ai bot commented Dec 31, 2023

Rollback Files For Sweep

  • Rollback changes to scripts/githooks/commit-msg
  • Rollback changes to scripts/githooks/commit-msg
  • Rollback changes to scripts/githooks/pre-commit
  • Rollback changes to scripts/githooks/pre-commit

Copy link
Contributor Author

sweep-ai bot commented Dec 31, 2023

Sandbox Executions

  • Running GitHub Actions for scripts/githooks/commit-msg
Check scripts/githooks/commit-msg with contents:

Ran GitHub Actions for 6704296c63860ab87e86ebaa79783950dedc5ba9:

  • Running GitHub Actions for scripts/githooks/pre-commit
Check scripts/githooks/pre-commit with contents:

Ran GitHub Actions for 18ebb587cb0a9f303c171e00e30b5f2df9fe928a:

@sweep-ai sweep-ai bot added the sweep label Dec 31, 2023
@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Dec 31, 2023
@kubbot
Copy link
Member

kubbot commented Dec 31, 2023

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Sandbox Executions

  • Running GitHub Actions for scripts/githooks/commit-msg
Check scripts/githooks/commit-msg with contents:

Ran GitHub Actions for 6704296c63860ab87e86ebaa79783950dedc5ba9:

  • Running GitHub Actions for scripts/githooks/pre-commit
Check scripts/githooks/pre-commit with contents:

Ran GitHub Actions for 18ebb587cb0a9f303c171e00e30b5f2df9fe928a:

Copy link
Contributor Author

sweep-ai bot commented Dec 31, 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 ./scripts/githooks/commit-msg
yielded the following error:
##[error]Process completed with exit code 126.

Here are the logs:
/home/runner/work/_temp/bb59207e-16c2-490a-9f3d-2d9df8e79110.sh: line 1: ./scripts/githooks/commit-msg: Permission denied

Making changes according to plan... (step 3/3)

Copy link
Contributor Author

sweep-ai bot commented Dec 31, 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 git add .
yielded the following error:
##[error]Process completed with exit code 1.

Here are the logs:
�[93mkubecub : Running local kubecub pre-commit hook.�[0m
�[93mkubecub : Running the kubecub commit-msg hook.�[0m
./_output/tools/go-gitlint not found. Attempting to install it...
--2023-12-31 02:32:30--  https://github.com/llorllale/go-gitlint/releases/latest/download/go-gitlint__.tar.gz
Resolving github.com (github.com)... 140.82.113.3
Connecting to github.com (github.com)|140.82.113.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github.com/llorllale/go-gitlint/releases/download/1.1.0/go-gitlint__.tar.gz [following]
--2023-12-31 02:32:30--  https://github.com/llorllale/go-gitlint/releases/download/1.1.0/go-gitlint__.tar.gz
Reusing existing connection to github.com:443.
HTTP request sent, awaiting response... 404 Not Found
2023-12-31 02:32:30 ERROR 404: Not Found.

% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed

0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

100     9  100     9    0     0     34      0 --:--:-- --:--:-- --:--:--    34

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
�[31mkubecub : Installation of ./_output/tools/go-gitlint failed. Please check your network connection, ensure you have the necessary permissions, and run 'make tools' OR 'make tools.verify.go-gitlint' to install it manually.�[0m

Making changes according to plan... (step 3/3)

Copy link
Contributor Author

sweep-ai bot commented Dec 31, 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 anchore/scan-action@v3
yielded the following error:
##[error]Failed minimum severity level. Found vulnerabilities with level 'medium' or higher

Here are the logs:
[command]/usr/bin/chmod +x /home/runner/work/_temp/89f5c2f9-2162-4767-9f5d-8267498f57ad
[command]/home/runner/work/_temp/89f5c2f9-2162-4767-9f5d-8267498f57ad -b /home/runner/work/_temp/89f5c2f9-2162-4767-9f5d-8267498f57ad_grype v0.73.4
[info] checking github for release tag='v0.73.4'
[info] fetching release script for tag='v0.73.4'
[info] checking github for release tag='v0.73.4'
[info] using release tag='v0.73.4' version='0.73.4' os='linux' arch='amd64'
[info] installed /home/runner/work/_temp/89f5c2f9-2162-4767-9f5d-8267498f57ad_grype/grype
##[group]grype output...
Executing: grype -o sarif --fail-on medium dir:.
1 error occurred:
* discovered vulnerabilities at or above the severity threshold

##[endgroup]

Making changes according to plan... (step 3/3)

Copy link
Contributor Author

sweep-ai bot commented Dec 31, 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 ./tools/typos ./CONTRIBUTING.md ./README.md
yielded the following error:
##[error]Process completed with exit code 127.

Here are the logs:
/home/runner/work/_temp/6535aea8-697b-43dd-9c72-e75bdbfccabd.sh: line 1: ./tools/typos: No such file or directory

Copy link
Contributor Author

sweep-ai bot commented Dec 31, 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 go install github.com/llorllale/go-gitlint/cmd/go-gitlint@latest
yielded the following error:
##[error]Process completed with exit code 1.

Here are the logs:
go: downloading github.com/llorllale/go-gitlint v0.0.0-20230218145529-5dd6bc6b0830
go: github.com/llorllale/go-gitlint/cmd/go-gitlint@latest: module github.com/llorllale/go-gitlint@latest found (v0.0.0-20230218145529-5dd6bc6b0830), but does not contain package github.com/llorllale/go-gitlint/cmd/go-gitlint

Copy link
Contributor Author

sweep-ai bot commented Dec 31, 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 ./tools/typos ./CONTRIBUTING.md ./README.md
yielded the following error:
##[error]Process completed with exit code 127.

Here are the logs:
/home/runner/work/_temp/27b4d62d-7ee7-45a9-a710-782847db1368.sh: line 1: ./tools/typos: No such file or directory

Copy link
Contributor Author

sweep-ai bot commented Dec 31, 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 go install github.com/llorllale/go-gitlint/cmd/go-gitlint@latest
yielded the following error:
##[error]Process completed with exit code 1.

Here are the logs:
go: downloading github.com/llorllale/go-gitlint v0.0.0-20230218145529-5dd6bc6b0830
go: github.com/llorllale/go-gitlint/cmd/go-gitlint@latest: module github.com/llorllale/go-gitlint@latest found (v0.0.0-20230218145529-5dd6bc6b0830), but does not contain package github.com/llorllale/go-gitlint/cmd/go-gitlint

Copy link
Contributor Author

sweep-ai bot commented Dec 31, 2023

🚀 Wrote Changes

Done.

Copy link
Contributor Author

sweep-ai bot commented Dec 31, 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 git add .
yielded the following error:
##[error]Process completed with exit code 1.

Here are the logs:
�[93mkubecub : Running local kubecub pre-commit hook.�[0m
�[93mkubecub : Running the kubecub commit-msg hook.�[0m
./_output/tools/go-gitlint not found. Attempting to install it...
.git/hooks/commit-msg: line 64: ./_output/tools/go-gitlint: No such file or directory
�[31mkubecub : ./_output/tools/go-gitlint not found. Installing the go-gitlint tool...�[0m
make: Nothing to be done for 'tools'.
�[31mkubecub : Please make sure the installation was successful and re-run the commit-msg hook.�[0m
�[31mkubecub : Please fix your commit message to match kubecub coding standards�[0m
�[31mkubecub : https://gist.github.com/cubxxw/126b72104ac0b0ca484c9db09c3e5694#file-githook-md�[0m

Copy link
Contributor Author

sweep-ai bot commented Dec 31, 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 crate-ci/typos@master
yielded the following error:
##[error]Process completed with exit code 64.

Here are the logs:
##[group]Run $GITHUB_ACTION_PATH/action/entrypoint.sh
�[36;1m$GITHUB_ACTION_PATH/action/entrypoint.sh�[0m
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
env:
INSTALL_DIR: .
INPUT_FILES: ./CONTIRIBUTING.md ./README.md
INPUT_EXTEND_IDENTIFIERS:
INPUT_EXTEND_WORDS:
INPUT_ISOLATED: false
INPUT_WRITE_CHANGES: false
INPUT_CONFIG:
##[endgroup]
--2023-12-31 02:30:22--  https://github.com/crate-ci/typos/releases/download/v1.16.26/typos-v1.16.26-x86_64-unknown-linux-musl.tar.gz
Resolving github.com (github.com)... 140.82.114.3
Connecting to github.com (github.com)|140.82.114.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/181782286/a483f245-d4c3-4214-b98c-2b33e8793015?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20231231%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231231T022952Z&X-Amz-Expires=300&X-Amz-Signature=95bbd55258f37c72cf54168562b120e4af9e520d7a532301068186f11789aa86&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=181782286&response-content-disposition=attachment%3B%20filename%3Dtypos-v1.16.26-x86_64-unknown-linux-musl.tar.gz&response-content-type=application%2Foctet-stream [following]
--2023-12-31 02:30:22--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/181782286/a483f245-d4c3-4214-b98c-2b33e8793015?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20231231%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231231T022952Z&X-Amz-Expires=300&X-Amz-Signature=95bbd55258f37c72cf54168562b120e4af9e520d7a532301068186f11789aa86&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=181782286&response-content-disposition=attachment%3B%20filename%3Dtypos-v1.16.26-x86_64-unknown-linux-musl.tar.gz&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.111.133, 185.199.108.133, 185.199.109.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6542857 (6.2M) [application/octet-stream]
Saving to: ‘typos-v1.16.26-x86_64-unknown-linux-musl.tar.gz’

0K ........ ........ ........ ........ ........ ........ 48% 83.9M 0s
3072K ........ ........ ........ ........ ........ ........ 96%  226M 0s
6144K ...                                                  100%  254M=0.05s

2023-12-31 02:30:22 (125 MB/s) - ‘typos-v1.16.26-x86_64-unknown-linux-musl.tar.gz’ saved [6542857/6542857]

./typos
jq: jq-1.6
$ ./typos ./CONTIRIBUTING.md ./README.md
argument `./CONTIRIBUTING.md` is not found
argument `./CONTIRIBUTING.md` is not found

Copy link
Contributor Author

sweep-ai bot commented Dec 31, 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 git config --global user.email "[email protected]"
yielded the following error:
##[error]Process completed with exit code 1.

Here are the logs:
�[93mkubecub : Running local kubecub pre-commit hook.�[0m
�[93mkubecub : Running the kubecub commit-msg hook.�[0m
./_output/tools/go-gitlint not found. Attempting to install it...
.git/hooks/commit-msg: line 64: ./_output/tools/go-gitlint: No such file or directory
�[31mkubecub : ./_output/tools/go-gitlint not found. Installing the go-gitlint tool...�[0m
make: Nothing to be done for 'tools'.
�[31mkubecub : Please make sure the installation was successful and re-run the commit-msg hook.�[0m
�[31mkubecub : Please fix your commit message to match kubecub coding standards�[0m
�[31mkubecub : https://gist.github.com/cubxxw/126b72104ac0b0ca484c9db09c3e5694#file-githook-md�[0m

Copy link
Contributor Author

sweep-ai bot commented Dec 31, 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 ./scripts/githooks/commit-msg
yielded the following error:
##[error]Process completed with exit code 126.

Here are the logs:
/home/runner/work/_temp/aa672b64-8ecc-4c8f-90b4-063153b1a755.sh: line 1: ./scripts/githooks/commit-msg: Permission denied

Copy link
Contributor Author

sweep-ai bot commented Dec 31, 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 git add .
yielded the following error:
##[error]Process completed with exit code 1.

Here are the logs:
�[93mkubecub : Running local kubecub pre-commit hook.�[0m
�[93mkubecub : Running the kubecub commit-msg hook.�[0m
./_output/tools/go-gitlint not found. Attempting to install it...
--2023-12-31 02:31:35--  https://github.com/llorllale/go-gitlint/releases/latest/download/go-gitlint__.tar.gz
Resolving github.com (github.com)... 140.82.113.4
Connecting to github.com (github.com)|140.82.113.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github.com/llorllale/go-gitlint/releases/download/1.1.0/go-gitlint__.tar.gz [following]
--2023-12-31 02:31:35--  https://github.com/llorllale/go-gitlint/releases/download/1.1.0/go-gitlint__.tar.gz
Reusing existing connection to github.com:443.
HTTP request sent, awaiting response... 404 Not Found
2023-12-31 02:31:35 ERROR 404: Not Found.

% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed

0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

100     9  100     9    0     0     88      0 --:--:-- --:--:-- --:--:--    88

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
�[31mkubecub : Installation of ./_output/tools/go-gitlint failed. Please check your network connection, ensure you have the necessary permissions, and run 'make tools' OR 'make tools.verify.go-gitlint' to install it manually.�[0m

Copy link
Contributor Author

sweep-ai bot commented Dec 31, 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 git config --global user.email "[email protected]"
yielded the following error:
##[error]Process completed with exit code 1.

Here are the logs:
�[93mkubecub : Running local kubecub pre-commit hook.�[0m
�[93mkubecub : Running the kubecub commit-msg hook.�[0m
./_output/tools/go-gitlint not found. Attempting to install it...
--2023-12-31 02:31:38--  https://github.com/llorllale/go-gitlint/releases/latest/download/go-gitlint__.tar.gz
Resolving github.com (github.com)... 140.82.113.3
Connecting to github.com (github.com)|140.82.113.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github.com/llorllale/go-gitlint/releases/download/1.1.0/go-gitlint__.tar.gz [following]
--2023-12-31 02:31:38--  https://github.com/llorllale/go-gitlint/releases/download/1.1.0/go-gitlint__.tar.gz
Reusing existing connection to github.com:443.
HTTP request sent, awaiting response... 404 Not Found
2023-12-31 02:31:38 ERROR 404: Not Found.

% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed

0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

100     9  100     9    0     0    139      0 --:--:-- --:--:-- --:--:--   139

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
�[31mkubecub : Installation of ./_output/tools/go-gitlint failed. Please check your network connection, ensure you have the necessary permissions, and run 'make tools' OR 'make tools.verify.go-gitlint' to install it manually.�[0m

Copy link
Contributor Author

sweep-ai bot commented Dec 31, 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 git config --global user.email "[email protected]"
yielded the following error:
##[error]Process completed with exit code 1.

Here are the logs:
�[93mkubecub : Running local kubecub pre-commit hook.�[0m
�[93mkubecub : Running the kubecub commit-msg hook.�[0m
./_output/tools/go-gitlint not found. Attempting to install it...
--2023-12-31 02:31:41--  https://github.com/llorllale/go-gitlint/releases/latest/download/go-gitlint__.tar.gz
Resolving github.com (github.com)... 140.82.113.4
Connecting to github.com (github.com)|140.82.113.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github.com/llorllale/go-gitlint/releases/download/1.1.0/go-gitlint__.tar.gz [following]
--2023-12-31 02:31:41--  https://github.com/llorllale/go-gitlint/releases/download/1.1.0/go-gitlint__.tar.gz
Reusing existing connection to github.com:443.
HTTP request sent, awaiting response... 404 Not Found
2023-12-31 02:31:41 ERROR 404: Not Found.

% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed

0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

100     9  100     9    0     0     32      0 --:--:-- --:--:-- --:--:--    32

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
�[31mkubecub : Installation of ./_output/tools/go-gitlint failed. Please check your network connection, ensure you have the necessary permissions, and run 'make tools' OR 'make tools.verify.go-gitlint' to install it manually.�[0m

Copy link
Contributor Author

sweep-ai bot commented Dec 31, 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 git add .
yielded the following error:
##[error]Process completed with exit code 1.

Here are the logs:
�[93mkubecub : Running local kubecub pre-commit hook.�[0m
�[93mkubecub : Running the kubecub commit-msg hook.�[0m
./_output/tools/go-gitlint not found. Attempting to install it...
--2023-12-31 02:31:56--  https://github.com/llorllale/go-gitlint/releases/latest/download/go-gitlint__.tar.gz
Resolving github.com (github.com)... 192.30.255.112
Connecting to github.com (github.com)|192.30.255.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github.com/llorllale/go-gitlint/releases/download/1.1.0/go-gitlint__.tar.gz [following]
--2023-12-31 02:31:56--  https://github.com/llorllale/go-gitlint/releases/download/1.1.0/go-gitlint__.tar.gz
Reusing existing connection to github.com:443.
HTTP request sent, awaiting response... 404 Not Found
2023-12-31 02:31:56 ERROR 404: Not Found.

% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed

0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

100     9  100     9    0     0     36      0 --:--:-- --:--:-- --:--:--    36

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
�[31mkubecub : Installation of ./_output/tools/go-gitlint failed. Please check your network connection, ensure you have the necessary permissions, and run 'make tools' OR 'make tools.verify.go-gitlint' to install it manually.�[0m

Copy link
Contributor Author

sweep-ai bot commented Dec 31, 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 ./tools/typos ./CONTRIBUTING.md ./README.md
yielded the following error:
##[error]Process completed with exit code 127.

Here are the logs:
/home/runner/work/_temp/aaaf0bfc-3e5d-40c9-b216-e057ec6e7d61.sh: line 1: ./tools/typos: No such file or directory

Copy link
Contributor Author

sweep-ai bot commented Dec 31, 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 ./tools/typos ./CONTRIBUTING.md ./README.md
yielded the following error:
##[error]Process completed with exit code 127.

Here are the logs:
/home/runner/work/_temp/53304f46-9bac-447e-b108-558a9d8dc065.sh: line 1: ./tools/typos: No such file or directory

Copy link
Contributor Author

sweep-ai bot commented Dec 31, 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 go install github.com/llorllale/go-gitlint/cmd/go-gitlint@latest
yielded the following error:
##[error]Process completed with exit code 1.

Here are the logs:
go: downloading github.com/llorllale/go-gitlint v0.0.0-20230218145529-5dd6bc6b0830
go: github.com/llorllale/go-gitlint/cmd/go-gitlint@latest: module github.com/llorllale/go-gitlint@latest found (v0.0.0-20230218145529-5dd6bc6b0830), but does not contain package github.com/llorllale/go-gitlint/cmd/go-gitlint

Copy link
Contributor Author

sweep-ai bot commented Dec 31, 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 go install github.com/llorllale/go-gitlint/cmd/go-gitlint@latest
yielded the following error:
##[error]Process completed with exit code 1.

Here are the logs:
go: downloading github.com/llorllale/go-gitlint v0.0.0-20230218145529-5dd6bc6b0830
go: github.com/llorllale/go-gitlint/cmd/go-gitlint@latest: module github.com/llorllale/go-gitlint@latest found (v0.0.0-20230218145529-5dd6bc6b0830), but does not contain package github.com/llorllale/go-gitlint/cmd/go-gitlint

Copy link
Contributor Author

sweep-ai bot commented Dec 31, 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 ./scripts/githooks/commit-msg
yielded the following error:
##[error]Process completed with exit code 126.

Here are the logs:
/home/runner/work/_temp/d26acfc7-1ef5-478c-9a48-a14c3960889b.sh: line 1: ./scripts/githooks/commit-msg: Permission denied

Copy link
Contributor Author

sweep-ai bot commented Dec 31, 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 crate-ci/typos@master
yielded the following error:
##[error]Process completed with exit code 64.

Here are the logs:
##[group]Run $GITHUB_ACTION_PATH/action/entrypoint.sh
�[36;1m$GITHUB_ACTION_PATH/action/entrypoint.sh�[0m
shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
env:
INSTALL_DIR: .
INPUT_FILES: ./CONTIRIBUTING.md ./README.md
INPUT_EXTEND_IDENTIFIERS:
INPUT_EXTEND_WORDS:
INPUT_ISOLATED: false
INPUT_WRITE_CHANGES: false
INPUT_CONFIG:
##[endgroup]
--2023-12-31 02:42:42--  https://github.com/crate-ci/typos/releases/download/v1.16.26/typos-v1.16.26-x86_64-unknown-linux-musl.tar.gz
Resolving github.com (github.com)... 140.82.114.3
Connecting to github.com (github.com)|140.82.114.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/181782286/a483f245-d4c3-4214-b98c-2b33e8793015?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20231231%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231231T024243Z&X-Amz-Expires=300&X-Amz-Signature=996b2aab262ba34be982c343c2329c9bede7d52ceee52fc89b8cc0ef9a13f7cf&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=181782286&response-content-disposition=attachment%3B%20filename%3Dtypos-v1.16.26-x86_64-unknown-linux-musl.tar.gz&response-content-type=application%2Foctet-stream [following]
--2023-12-31 02:42:43--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/181782286/a483f245-d4c3-4214-b98c-2b33e8793015?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20231231%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231231T024243Z&X-Amz-Expires=300&X-Amz-Signature=996b2aab262ba34be982c343c2329c9bede7d52ceee52fc89b8cc0ef9a13f7cf&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=181782286&response-content-disposition=attachment%3B%20filename%3Dtypos-v1.16.26-x86_64-unknown-linux-musl.tar.gz&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.109.133, 185.199.111.133, 185.199.110.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.109.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6542857 (6.2M) [application/octet-stream]
Saving to: ‘typos-v1.16.26-x86_64-unknown-linux-musl.tar.gz’

0K ........ ........ ........ ........ ........ ........ 48% 57.6M 0s
3072K ........ ........ ........ ........ ........ ........ 96%  227M 0s
6144K ...                                                  100%  379M=0.07s

2023-12-31 02:42:43 (94.6 MB/s) - ‘typos-v1.16.26-x86_64-unknown-linux-musl.tar.gz’ saved [6542857/6542857]

./typos
jq: jq-1.6
$ ./typos ./CONTIRIBUTING.md ./README.md
argument `./CONTIRIBUTING.md` is not found
argument `./CONTIRIBUTING.md` is not found

Copy link
Contributor Author

sweep-ai bot commented Dec 31, 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 ./scripts/githooks/commit-msg
yielded the following error:
##[error]Process completed with exit code 126.

Here are the logs:
/home/runner/work/_temp/494f328e-5ec7-4de5-926d-cef829a839ec.sh: line 1: ./scripts/githooks/commit-msg: Permission denied

Copy link
Contributor Author

sweep-ai bot commented Dec 31, 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 anchore/scan-action@v3
yielded the following error:
##[error]Failed minimum severity level. Found vulnerabilities with level 'medium' or higher

Here are the logs:
[command]/usr/bin/chmod +x /home/runner/work/_temp/93e41364-ce67-4a0b-938a-43cf9595a2d0
[command]/home/runner/work/_temp/93e41364-ce67-4a0b-938a-43cf9595a2d0 -b /home/runner/work/_temp/93e41364-ce67-4a0b-938a-43cf9595a2d0_grype v0.73.4
[info] checking github for release tag='v0.73.4'
[info] fetching release script for tag='v0.73.4'
[info] checking github for release tag='v0.73.4'
[info] using release tag='v0.73.4' version='0.73.4' os='linux' arch='amd64'
[info] installed /home/runner/work/_temp/93e41364-ce67-4a0b-938a-43cf9595a2d0_grype/grype
##[group]grype output...
Executing: grype -o sarif --fail-on medium dir:.
1 error occurred:
* discovered vulnerabilities at or above the severity threshold

##[endgroup]

Copy link
Contributor Author

sweep-ai bot commented Dec 31, 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 git config --global user.email "[email protected]"
yielded the following error:
##[error]Process completed with exit code 1.

Here are the logs:
�[93mkubecub : Running local kubecub pre-commit hook.�[0m
.git/hooks/pre-commit: line 107: syntax error near unexpected token `fi'
.git/hooks/pre-commit: line 107: `fi'

Copy link
Contributor Author

sweep-ai bot commented Dec 31, 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 git add .
yielded the following error:
##[error]Process completed with exit code 1.

Here are the logs:
�[93mkubecub : Running local kubecub pre-commit hook.�[0m
.git/hooks/pre-commit: line 107: syntax error near unexpected token `fi'
.git/hooks/pre-commit: line 107: `fi'

Copy link
Contributor Author

sweep-ai bot commented Dec 31, 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 git add .
yielded the following error:
##[error]Process completed with exit code 1.

Here are the logs:
�[93mkubecub : Running local kubecub pre-commit hook.�[0m
.git/hooks/pre-commit: line 107: syntax error near unexpected token `fi'
.git/hooks/pre-commit: line 107: `fi'

@kubbot
Copy link
Member

kubbot commented Jan 7, 2024

This issue is stale because it has been open 7 days with no activity.

@kubbot kubbot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 7, 2024
@kubbot
Copy link
Member

kubbot commented Jan 13, 2024

This PR was closed because it has been stalled for 5 days with no activity. You can reopen it if you want.

@kubbot kubbot closed this Jan 13, 2024
@kubecub kubecub locked and limited conversation to collaborators Jan 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. 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