Skip to content

[Sync] Update project files from source repository (0877483) - #180

Merged
mrz1836 merged 1 commit into
masterfrom
chore/sync-files-go-pre-commit-20260915-012131-0877483
Sep 15, 2026
Merged

mrz1836 merged 1 commit into
masterfrom
chore/sync-files-go-pre-commit-20260915-012131-0877483

Conversation

@mrz1836

@mrz1836 mrz1836 commented Sep 15, 2026

Copy link
Copy Markdown
Owner

What Changed

  • Updated Go devcontainer image from 1.24-bullseye to 1.26-bullseye
  • Added docs/** to codecov ignore paths alongside existing example and testing directories
  • Updated GO_PRE_COMMIT_VERSION from v1.10.1 to v1.11.0
  • Introduced dual-version support for gofumpt with GO_PRE_COMMIT_FUMPT_VERSION_LATEST=v0.12.0 and GO_PRE_COMMIT_FUMPT_VERSION_LATEST_MIN_GO=1.26, while keeping baseline at v0.11.0
  • Updated GO_COVERAGE_VERSION from v1.6.0 to v1.6.1
  • Updated GOVULNCHECK_VERSION from v1.7.0 to v1.8.0 and OSV_SCANNER_VERSION from v2.5.1 to v2.6.0
  • Added SHA-256 digest pinning for OSV-Scanner binaries (OSV_SCANNER_SHA256_LINUX_AMD64 and OSV_SCANNER_SHA256_LINUX_ARM64) with detailed supply-chain trust anchor documentation
  • Updated MAGE_X_VERSION from v1.26.5 to v1.27.2
  • Implemented dual-version gofumpt support in mage-x with MAGE_X_GOFUMPT_VERSION_LATEST=v0.12.0 and MAGE_X_GOFUMPT_VERSION_LATEST_MIN_GO=1.26
  • Updated MAGE_X_GORELEASER_VERSION from v2.18.0 to v2.18.1, MAGE_X_GOVULNCHECK_VERSION from v1.7.0 to v1.8.0, MAGE_X_OSV_SCANNER_VERSION from v2.5.1 to v2.6.0, and MAGE_X_BENCHSTAT_VERSION_LATEST from v0.0.0-20260825160852-19be9d8e6c70 to v0.0.0-20260908200009-22c9c6c9d4da
  • Refactored OSV-Scanner installation in security workflow from go install to binary download with SHA-256 verification against pinned digests
  • Updated permissions in CodeQL and Scorecard workflows to explicitly declare required access scopes

Why It Was Necessary

  • Tool version updates ensure access to latest security fixes, performance improvements, and compatibility with Go 1.26
  • SHA-256 pinning for OSV-Scanner eliminates transitive dependency on sum.golang.org and prevents HTTP/2 stream reset failures that were affecting the security scan job
  • Dual-version gofumpt support allows repositories on older Go toolchains (1.25.x) to continue working while newer repos can adopt v0.12.0's Go 1.26 requirements
  • Binary-based OSV-Scanner installation provides stronger supply-chain guarantees than go install by verifying against committed, reviewed checksums

Testing Performed

  • Automated file synchronization follows standard testing procedures for environment configuration updates
  • Version updates are validated through CI pipeline execution including pre-commit hooks, coverage reporting, and security scans
  • OSV-Scanner binary verification logic ensures SHA-256 mismatch blocks installation and rejects tampered or cached binaries
  • Dual-version gofumpt selection tested across Go 1.25.x and 1.26+ runner environments

Impact / Risk

  • Low risk: Version bumps are incremental updates to stable tooling with established compatibility
  • Breaking change mitigation: Dual-version gofumpt strategy prevents forced Go upgrades across all repositories simultaneously
  • Security improvement: SHA-256 pinning strengthens supply-chain security for OSV-Scanner installation and resolves HTTP/2 reliability issues
  • Developer experience: Go 1.26 devcontainer update aligns development environment with latest toolchain; repositories on older Go versions remain functional via version selection logic

@mrz1836 mrz1836 self-assigned this Sep 15, 2026
@mrz1836 mrz1836 added automated-sync Automated sync PR, e.g. from a fork or external repo automerge Label to automatically merge pull requests that meet all required conditions chore Simple dependency updates or version bumps labels Sep 15, 2026
@github-actions github-actions Bot added update General updates size/L Large change (201-500 lines) labels Sep 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Code Coverage Analysis

🟢 Overall Coverage: 91.4%
No Go files modified in this PR

Project coverage remains at 91.4% (3.2K/3.5K statements)

Changes: 9 config files

Coverage Metrics

Metric Value Grade Trend
Percentage 91.4% 🏆 A 📊
Statements 3.2K/3.5K 🏆 A No change
Quality Score 91.4/100 🏆 A 📈

Coverage Breakdown

█████████████░░ 91.4%

Resources


Generated via go-coverage • 2026-09-15 01:27:19 UTC

github-actions Bot added a commit that referenced this pull request Sep 15, 2026
🏷️ Generated with GoFortress
@mrz1836

mrz1836 commented Sep 15, 2026

Copy link
Copy Markdown
Owner Author

LGTM!

@mrz1836
mrz1836 merged commit f936fc3 into master Sep 15, 2026
25 checks passed
@github-actions
github-actions Bot deleted the chore/sync-files-go-pre-commit-20260915-012131-0877483 branch September 15, 2026 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated-sync Automated sync PR, e.g. from a fork or external repo automerge Label to automatically merge pull requests that meet all required conditions chore Simple dependency updates or version bumps size/L Large change (201-500 lines) update General updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant