Skip to content

[nightshift] ci-fixes: align Go version, add permissions, fix gofmt#38

Closed
nightshift-micr wants to merge 1 commit into
Microck:mainfrom
nightshift-micr:nightshift/ci-fixes
Closed

[nightshift] ci-fixes: align Go version, add permissions, fix gofmt#38
nightshift-micr wants to merge 1 commit into
Microck:mainfrom
nightshift-micr:nightshift/ci-fixes

Conversation

@nightshift-micr
Copy link
Copy Markdown
Contributor

nightshift: ci-fixes

Changes

Go version alignment (critical)

  • ci.yml and release.yml used go-version: "1.22" while go.mod requires go 1.25.6
  • live-e2e.yml already used the correct version — this was an inconsistency
  • Updated all workflow files to use go-version: "1.25.6" to match go.mod

Permissions hardening

  • Added permissions: contents: read to ci.yml for least-privilege principle
  • Previous workflows had no explicit permissions block (used repo defaults)

gofmt check fix

  • Changed gofmt -l $(find . -name '*.go' -type f) to gofmt -l .
  • The find subshell can fail with "argument list too long" on large repos
  • gofmt -l . handles this natively

Files Changed

  • .github/workflows/ci.yml — Go version, permissions, gofmt
  • .github/workflows/release.yml — Go version

Verification

  • Go version now consistent across all 4 workflow files
  • permissions block follows GitHub security best practices
  • gofmt -l . is the idiomatic approach

…s, fix gofmt

- Fix Go version mismatch: ci.yml and release.yml used 1.22 while go.mod
  requires 1.25.6 and live-e2e.yml already uses 1.25.6
- Add explicit permissions: contents: read to ci.yml for least-privilege
- Simplify gofmt check: use 'gofmt -l .' instead of find subshell

[nightshift ci-fixes]
@Microck Microck added the dayshift/pr-inbox Managed by hermes-dayshift-glm label Apr 25, 2026
@Microck
Copy link
Copy Markdown
Owner

Microck commented Apr 29, 2026

Superseded by #43, which merged the CI Go-version alignment, workflow permissions, and gofmt update onto main.

@Microck Microck closed this Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dayshift/pr-inbox Managed by hermes-dayshift-glm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants