Skip to content

ci: harden workflows, upgrade actions, fix caching#248

Open
paskal wants to merge 1 commit intoumputun:masterfrom
paskal:ci/workflow-hardening
Open

ci: harden workflows, upgrade actions, fix caching#248
paskal wants to merge 1 commit intoumputun:masterfrom
paskal:ci/workflow-hardening

Conversation

@paskal
Copy link
Contributor

@paskal paskal commented Mar 7, 2026

Changes

  • Reorder checkout before setup-go for proper dependency caching
  • Upgrade all GitHub Actions to latest versions (checkout v6, buildx v4, qemu v4, login v4, build-push v7, upload-artifact v7, download-artifact v8, goreleaser v7)
  • Add permissions: contents: read for least-privilege security (release.yml gets contents: write, docker/ci-site get packages: write)
  • Add persist-credentials: false to checkout steps
  • Fix goveralls pattern (combined install + submit)
  • Pin golangci-lint-action version to v2.11.1

Note: golangci-lint v2.11.1 reports 2 code-level gosec G118 issues that exist on master — not introduced by this PR.

Verified golangci-lint config is valid with v2.11.1.

@paskal paskal requested a review from umputun as a code owner March 7, 2026 19:33
@paskal paskal force-pushed the ci/workflow-hardening branch 2 times, most recently from 57e3420 to 0b58602 Compare March 10, 2026 20:59
- Add permissions blocks (contents: read/write, packages: write)
- Add persist-credentials: false to checkout steps
- Upgrade actions (checkout v6, setup-buildx v4, login v4,
  build-push v7, upload-artifact v7, download-artifact v8,
  goreleaser v7)
- Move checkout before setup-go for proper caching
- Combine goveralls install with coverage submission
- Add defer cancel() for context leak in main.go
- Revert context.WithoutCancel in mgmt shutdown (context.Background
  is intentional — ctx is already canceled)
@paskal paskal force-pushed the ci/workflow-hardening branch from 0b58602 to 7710f99 Compare March 10, 2026 21:03
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.

1 participant