Skip to content

Update outdated GitHub Actions #362

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lucacome
Copy link

@lucacome lucacome commented Mar 7, 2025

Updates the Actions to the latest version available. This among other things removes the warnings in the runs.

The setup-go action now accepts stable as a version to always use the latest stable version.

Also updated .golangci.yaml to remove the warnings about deprecated configuration options.

@ibihim
Copy link
Collaborator

ibihim commented Mar 13, 2025

Oh, that is a cool contribution. I will take a look, but first I will take a look at the bug introduced with the last version.

@ibihim
Copy link
Collaborator

ibihim commented Mar 20, 2025

/lgtm

@lucacome
Copy link
Author

Is there anything I need to do to get this merged?

@ibihim
Copy link
Collaborator

ibihim commented Mar 31, 2025

I don't think so, just patience 😅

I was waiting for @stlaz, but he said that it is fine to merge. But there is no hurry yet as there are a couple of other PRs to merge before the next release.

@lucacome lucacome force-pushed the chore/github-actions branch 4 times, most recently from 1a97bd3 to 2a483b3 Compare April 1, 2025 00:42
@ibihim
Copy link
Collaborator

ibihim commented Apr 1, 2025

@lucacome , actually I just watched a best practice in a talk at KubeCon London:

Could you pin the full commit hash of the current checkout v4 (11bd71901bbe5b1630ceea73d27597364c9af683)? It is considered more secure, than following the tag.

In context of the whole tj-actions desaster.

@lucacome
Copy link
Author

lucacome commented Apr 1, 2025

@ibihim I usually have the SHAs for all the Actions in all my repos, but I also add something like dependabot or renovate to keep the dependencies up to date.
I feel like pinning a dependency that will never get updated again might be worse than having a major tag. What do you think?

@lucacome lucacome force-pushed the chore/github-actions branch from 6e8616c to 21ad02e Compare April 1, 2025 23:28
@ibihim
Copy link
Collaborator

ibihim commented Apr 3, 2025

I agree, we will need to change that :) If you have any best practices to share, you are welcome, otherwise I would make it part of the release cycle, to not only bump go deps, but also GitHubActions.

with:
version: ${{ env.kind-version }}
version: "v0.27.0"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is better to have this at the top, so one doesn't need to scroll through the file to bump the version

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reverted it. If we decide to use renovate we can keep that up to date automatically too.

@ibihim
Copy link
Collaborator

ibihim commented Apr 3, 2025

The e2e tests are failing :)

Sorry, for not approving you earlier, but once I press the "approve" button, your PR gets merged automatically once it is green.

@ibihim
Copy link
Collaborator

ibihim commented Apr 4, 2025

Can you squash also the commits into one or two (e.g. one for the github action and one for the other stuff)? 😄

@lucacome lucacome force-pushed the chore/github-actions branch 2 times, most recently from 549db39 to 152f8a7 Compare April 9, 2025 00:32
@lucacome
Copy link
Author

lucacome commented Apr 9, 2025

I agree, we will need to change that :) If you have any best practices to share, you are welcome, otherwise I would make it part of the release cycle, to not only bump go deps, but also GitHubActions.

I would add renovate. I opened a PR a while ago with dependabot (because you can just add the file to enable it) and it was rejected tho.. 😅

@lucacome lucacome force-pushed the chore/github-actions branch 2 times, most recently from a3f9c52 to 0e6f523 Compare April 9, 2025 01:55
@lucacome lucacome force-pushed the chore/github-actions branch from 0e6f523 to 2090577 Compare April 9, 2025 01:58
@lucacome
Copy link
Author

By the way, I was also planning to add the build step as a GitHub Action instead of the script after this one is merged.

Copy link
Collaborator

@stlaz stlaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution!
I think we're almost ready to merge. I trust @ibihim on his review, there were just two things I stumbled upon in my quick read, but otherwise the PR looks good to me 👍

Comment on lines -58 to +98
uses: engineerd/setup-kind@v0.5.0
uses: helm/kind-action@a1b0e391336a6ee6713a0583f8c6240d70863de3 # v1.12.0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't followed the PR from the beginning, was this change explained somewhere?

Copy link
Collaborator

@ibihim ibihim Apr 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked it myself. helm is slightly more popular than engineerd (240 stars, last release 10/24, v 0.y.z) vs helm (322 stars, last release 12/2024, v x.y.z). It shouldn't matter too much.

env:
QUAY_PATH: quay.io/brancz/kube-rbac-proxy
go-version: '1.23'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's stick to a stable version rather than running on the stable channel. The decision to move up a version should be explicit.

Copy link
Collaborator

@ibihim ibihim Apr 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm, ok. Deterministic is better than probabilistic.

But I wish we would live in a world, where we don't need to be too specific.

So we should lock-in x and y? The z-stream should be flexible, right?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

x.y like we had before should be fine

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.

3 participants