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 by Ensuring go-gitlint Installation #162

Closed
wants to merge 1 commit into from

Conversation

sweep-ai[bot]
Copy link
Contributor

@sweep-ai sweep-ai bot commented Dec 30, 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 was modified to ensure that the go-gitlint tool is correctly installed and executed.

Changes were made in the scripts/githooks/commit-msg file. The script now includes commands to download and install the go-gitlint tool. Additionally, the error message has been made more descriptive to provide better feedback in case of failure. The go-gitlint tool is now only executed if it was installed successfully.

Summary of Changes

  • Added commands to download and install the go-gitlint tool in the scripts/githooks/commit-msg script.
  • Modified the error message in the scripts/githooks/commit-msg script to provide more detailed feedback.
  • Added an else clause to the if statement that checks if the go-gitlint tool was installed successfully. The tool is now only executed if it was installed successfully.

Copy link
Contributor Author

sweep-ai bot commented Dec 30, 2023

Rollback Files For Sweep

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

@sweep-ai sweep-ai bot added the sweep label Dec 30, 2023
Copy link
Contributor Author

sweep-ai bot commented Dec 30, 2023

Sandbox Executions

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

Ran GitHub Actions for 580e0d43c9df0e3b9f9e547b41c821cf22a263c8:

@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Dec 30, 2023
Copy link
Contributor Author

sweep-ai bot commented Dec 30, 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/2395ad5d-7a46-4945-b6ae-26163e5c8c9d.sh: line 1: ./tools/typos: No such file or directory

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

Copy link
Contributor Author

sweep-ai bot commented Dec 30, 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/382981b9-db71-4d19-ac80-c6fe18b6c6f3.sh: line 1: ./tools/typos: No such file or directory

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

Copy link
Contributor Author

sweep-ai bot commented Dec 30, 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

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

Copy link
Contributor Author

sweep-ai bot commented Dec 30, 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-30 18:15:36--  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.112.3
Connecting to github.com (github.com)|140.82.112.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%2F20231230%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231230T181536Z&X-Amz-Expires=300&X-Amz-Signature=b33ffabd484ee8fcec696b7368927d075bf29576c7d2dcec5af7eceafd4094e3&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-30 18:15:36--  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%2F20231230%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231230T181536Z&X-Amz-Expires=300&X-Amz-Signature=b33ffabd484ee8fcec696b7368927d075bf29576c7d2dcec5af7eceafd4094e3&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.108.133, 185.199.109.133, 185.199.110.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.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% 84.7M 0s
3072K ........ ........ ........ ........ ........ ........ 96%  305M 0s
6144K ...                                                  100%  388M=0.05s

2023-12-30 18:15:36 (136 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

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

Copy link
Contributor Author

sweep-ai bot commented Dec 30, 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

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

Copy link
Contributor Author

sweep-ai bot commented Dec 30, 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/bf564656-ae5d-45eb-83c1-c15e6a276577.sh: line 1: ./scripts/githooks/commit-msg: Permission denied

Copy link
Contributor Author

sweep-ai bot commented Dec 30, 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/b3a69631-283b-43fd-82ec-63fe5176b52c
[command]/home/runner/work/_temp/b3a69631-283b-43fd-82ec-63fe5176b52c -b /home/runner/work/_temp/b3a69631-283b-43fd-82ec-63fe5176b52c_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/b3a69631-283b-43fd-82ec-63fe5176b52c_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]

@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 15, 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 15, 2024
@kubecub kubecub locked and limited conversation to collaborators Jan 15, 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