Skip to content

CI and Makefile hygiene#343

Merged
clcollins merged 2 commits into
mainfrom
srepd/ci-makefile-hygiene
Jul 9, 2026
Merged

CI and Makefile hygiene#343
clcollins merged 2 commits into
mainfrom
srepd/ci-makefile-hygiene

Conversation

@clcollins

Copy link
Copy Markdown
Owner

Summary

Low-risk CI/build hygiene (no Go code changes):

  • permissions: contents: read added top-level to go-ci.yml — jobs no longer
    inherit the broad default GITHUB_TOKEN scope (Codecov uses its own secret).
  • New fixtures CI job running make test-fixtures — the customer-data
    sanitization check now runs in CI, not just locally (important given the "never
    commit customer data" rule).
  • Pin codecov/codecov-action to its v6 commit SHA (supply-chain).
  • Makefile GOPATH fix: awk '{print $1}'$$1 (Make ate $1, so awk
    printed $0 — the whole line).
  • @-silence the make release jq-token recipe line.

Test plan

  • Workflow YAML parses
  • GOPATH now resolves to the first path element, not the whole line
  • make test-fixtures passes (the new job runs on this PR)
  • go build ./..., gofmt -s clean

🤖 Generated with Claude Code

- Add top-level `permissions: contents: read` to go-ci.yml (no job writes to the
  repo; Codecov uses its own CODECOV_TOKEN).
- Add a `fixtures` CI job running `make test-fixtures` so customer-data
  sanitization is enforced in CI, not just locally.
- Pin codecov/codecov-action to its v6 commit SHA (supply-chain).
- Fix Makefile GOPATH awk: `$1` -> `$$1` (Make ate `$1`, so awk printed $0).
- `@`-silence the `make release` jq token line.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@codecov-commenter

codecov-commenter commented Jul 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.42%. Comparing base (ea0b98a) to head (723df59).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #343   +/-   ##
=======================================
  Coverage   66.42%   66.42%           
=======================================
  Files          51       51           
  Lines        8170     8170           
=======================================
  Hits         5427     5427           
  Misses       2368     2368           
  Partials      375      375           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@clcollins clcollins merged commit e85194b into main Jul 9, 2026
11 checks passed
@clcollins clcollins deleted the srepd/ci-makefile-hygiene branch July 9, 2026 18:07
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.

2 participants