Skip to content

ci: publish coverage only on main pushes - #411

Merged
linkdata merged 1 commit into
mainfrom
fix/push-only-coverage-job
Sep 25, 2026
Merged

linkdata merged 1 commit into
mainfrom
fix/push-only-coverage-job

Conversation

@linkdata

Copy link
Copy Markdown
Owner

Summary

Run the coverage publishing job only for pushes to main. Pull requests still run the build and coverage tests, but do not run the job that requests contents: write and publishes the badge and report.

The suspected fork token escalation in #398 is unconfirmed. GitHub documents that fork PR tokens are normally read-only, with an admin setting that can allow write tokens. The job condition avoids depending on that setting.

Verification

  • actionlint .github/workflows/build.yml
  • Full race and non-race Go suites with JAWS_REQUIRE_NODE=1
  • go vet, staticcheck, golangci-lint, gosec, gofumpt, go build

Fixes #398

@linkdata
linkdata merged commit fb46afd into main Sep 25, 2026
7 checks passed
@linkdata
linkdata deleted the fix/push-only-coverage-job branch September 25, 2026 17:18
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.

Needs a check: coverage job has contents:write and runs unguarded on pull_request

1 participant