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

upgrade go-git from v4 to v5 #210

Merged
merged 1 commit into from
Feb 28, 2024
Merged

upgrade go-git from v4 to v5 #210

merged 1 commit into from
Feb 28, 2024

Conversation

yob
Copy link
Contributor

@yob yob commented Feb 28, 2024

In #206 gopkg.in/src-d/go-git.v4 was added as a dependency, which has led to a couple of GH security alerts.

Reading the details on the two alerts, it seems like we're unlikely to be impacted. We're using it to parse git URLs and not clone repositories onto a filesystem, so we're not working with untrusted input.

I thought I'd try upgrading the dependency to v5 anyway though. We'll be on the latest version which will help with keeping the project maintainable, and maybe the security alerts will go away as a side effect.

I had to bump the default 1 min timeout on golint to get the linting step to pass. Looking at some recent builds golint was taking very close to 1min, so I guess this was enough to push it over? It only takes a few seconds on my laptop, maybe we need better/bigger CI instances?

@yob yob marked this pull request as draft February 28, 2024 10:46
@yob yob force-pushed the go-git-v5 branch 3 times, most recently from c5faac2 to 9212dc9 Compare February 28, 2024 11:15
yob added a commit that referenced this pull request Feb 28, 2024
While working on #210 I noticed there was a new major release of the
docker compose plugin.

In the end I didn't need the upgrade for that PR, so I thought I'd pull
it out into a dedicated one.
In #206 gopkg.in/src-d/go-git.v4 was added as a dependency, which has
led to a couple of GH security alerts.

Reading the details on the two alerts, it seems like we're unlikely to
be impacted. We're using it to parse git URLs and not clone repositories
onto a filesystem, so we're not working with untrusted input.

I thought I'd try upgrading the dependency to v5 anyway though. We'll be
on the latest version which will help with keeping the project
maintainable, and maybe the security alerts will go away as a side
effect.

I had to bump the default 1 min timeout on golint to get the linting
step to pass. Looking at some recent builds golint was taking very close
to 1min, so I guess this was enough to push it over? It only takes a few
seconds on my laptop, maybe we need better/bigger CI instances?
@yob yob marked this pull request as ready for review February 28, 2024 11:22
@mcncl mcncl merged commit 0ab63b4 into 3.x Feb 28, 2024
1 check passed
@mcncl mcncl deleted the go-git-v5 branch February 28, 2024 11:31
mcncl added a commit that referenced this pull request Feb 28, 2024
While working on #210 I noticed there was a new major release of the
docker compose plugin.

In the end I didn't need the upgrade for that PR, so I thought I'd pull
it out into a dedicated one.

Co-authored-by: mcncl <git@benmcnicholl.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants