10 Commits

Author SHA1 Message Date
Joshua Hale b969047092 Update references for actions/upload-code-coverage
Update README and action.yml to reference the new permanent home
at actions/upload-code-coverage. Remove temporary location notice.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
v1 v1.0.0
2026-04-24 17:11:55 +01:00
Taj dd8808a178 Merge pull request #3 from code-quality-org/tjgurwara99/action-change
Update action to only send ref when pr number is not included and vice versa
2026-04-08 13:15:27 +01:00
Taj Singh 8ac3b8292f Update action to only send ref when pr number is not included and vice versa 2026-04-08 13:13:41 +01:00
Joshua Hale 5d8f3aaf7e Merge pull request #1 from code-quality-org/skip-merge-queue
Skip coverage upload for merge queue runs
2026-04-01 15:09:47 +01:00
Joshua Hale d237c0c90e Skip coverage upload for merge queue runs
Merge queue commits are ephemeral — coverage was already uploaded
during the PR, and the push to the default branch will upload
results for the final landed commit. Log a warning and exit
successfully instead of wasting an API call.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-04-01 12:44:38 +01:00
Joshua Hale 44487309c0 Add caveats section noting fork PR limitation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-31 10:38:48 +01:00
Joshua Hale 71ed76a552 Skip coverage upload for fork PRs
Fork PR tokens don't have write access to the base repo, so the
upload would fail with 403. Detect this early and exit with a
notice instead of a red CI step.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-31 10:35:49 +01:00
Joshua Hale ca786bcab9 Note temporary repo location in README
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-30 11:39:39 +01:00
Joshua Hale f0f93e2527 Add helpful error for missing permissions
When the upload returns 403, surface a clear message telling the
caller to set security-events:write on their job, with a link to
the README's permissions section.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-30 11:36:35 +01:00
Joshua Hale fb6ed62786 Add composite action for code coverage upload
Wraps the PUT /repos/{owner}/{repo}/code-coverage/report API call,
handling gzip/base64 encoding, PR vs push event detection, SHA/ref
resolution, and PR number lookup automatically.

Supports both pull_request-triggered and push-only workflows.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-30 11:33:34 +01:00