Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/release_build_infisical_cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@
uses: docker/setup-buildx-action@v2
- run: git fetch --force --tags
- run: echo "Ref name ${{github.ref_name}}"
- uses: actions/setup-go@v3

Check notice on line 102 in .github/workflows/release_build_infisical_cli.yml

View check run for this annotation

Claude / Claude Code Review

Inconsistent actions/setup-go versions across workflow files

The three workflow files use inconsistent versions of `actions/setup-go`: `release_build_infisical_cli.yml` uses `@v3`, `run-cli-tests.yml` uses `@v4`, and `run-cli-e2e-tests.yml` uses `@v6`. This is a pre-existing inconsistency not introduced by this PR, but since all three files were touched to bump the Go version, it would have been a good opportunity to standardize on `@v6` everywhere.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟣 The three workflow files use inconsistent versions of actions/setup-go: release_build_infisical_cli.yml uses @v3, run-cli-tests.yml uses @v4, and run-cli-e2e-tests.yml uses @v6. This is a pre-existing inconsistency not introduced by this PR, but since all three files were touched to bump the Go version, it would have been a good opportunity to standardize on @v6 everywhere.

Extended reasoning...

What the bug is and how it manifests

The three CI workflow files use three different major versions of the actions/setup-go action: release_build_infisical_cli.yml uses @v3 (in two separate job steps), run-cli-tests.yml uses @v4, and run-cli-e2e-tests.yml uses @v6 (in three separate job steps). Different major versions of actions/setup-go have different default behaviors around module caching, toolchain selection, and feature support. While all versions can install a specified Go version, the caching strategy and other behaviors differ.

The specific code path that triggers it

In release_build_infisical_cli.yml lines 102 and 184, actions/setup-go@v3 is used. In run-cli-tests.yml line 35, actions/setup-go@v4 is used. In run-cli-e2e-tests.yml lines 16, 51, and 77, actions/setup-go@v6 is used. The PR changed only the go-version parameter (1.25.8 β†’ 1.25.9) in all five locations without updating the action version references.

Why existing code doesn't prevent it

This inconsistency pre-dates this PR and was already present in the repository. The PR author bumped the Go patch version across all three workflow files but did not take the opportunity to also standardize the actions/setup-go version. There are no automated checks in the repository to enforce consistent action versions across workflow files.

What the impact would be

The practical impact is minor: all three action versions correctly install the specified Go version. However, @v3 and @v4 have older caching mechanisms compared to @v6. The release build workflow uses @v3 with explicit cache: true and cache-dependency-path parameters β€” in @v6 these are enabled by default. Inconsistent behavior across CI environments can make debugging cache-related issues harder and may result in unnecessary cache misses or hits depending on the action version.

How to fix it

Update all five uses: actions/setup-go@vX references to uses: actions/setup-go@v6 for consistency. Since @v6 enables caching by default, the explicit cache: true and cache-dependency-path: go.sum parameters in release_build_infisical_cli.yml can be retained or left to defaults.

Step-by-step proof

  1. Open .github/workflows/release_build_infisical_cli.yml β€” line 102 shows uses: actions/setup-go@v3, and line 184 shows another uses: actions/setup-go@v3.
  2. Open .github/workflows/run-cli-tests.yml β€” line 35 shows uses: actions/setup-go@v4.
  3. Open .github/workflows/run-cli-e2e-tests.yml β€” lines 16, 51, and 77 each show uses: actions/setup-go@v6.
  4. The PR diff shows only go-version changes (1.25.8 β†’ 1.25.9) at these lines, confirming the action version mismatch was pre-existing and unmodified by this PR.

with:
go-version: "1.25.8"
go-version: "1.25.9"
cache: true
cache-dependency-path: go.sum
- name: Setup for libssl1.0-dev
Expand Down Expand Up @@ -183,7 +183,7 @@
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "1.25.8"
go-version: "1.25.9"
cache: true
cache-dependency-path: go.sum

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/run-cli-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: "1.25.8"
go-version: "1.25.9"
- name: Install dependencies
run: go get .
- name: Build the CLI
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: "1.25.8"
go-version: "1.25.9"
- name: Install dependencies
run: go get .
- name: Build the CLI
Expand All @@ -77,7 +77,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: "1.25.8"
go-version: "1.25.9"
- name: Install dependencies
run: go get .
- name: Build the CLI
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-cli-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.25.8"
go-version: "1.25.9"
- name: Install dependencies
run: go get .
- name: Test with the Go CLI
Expand Down
2 changes: 1 addition & 1 deletion e2e/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/infisical/cli/e2e-tests

go 1.25.8
go 1.25.9

require (
github.com/Infisical/infisical-merge v0.0.0
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/Infisical/infisical-merge

go 1.25.8
go 1.25.9

require (
github.com/BobuSumisu/aho-corasick v1.0.3
Expand Down
Loading