Skip to content

Conversation

@rekmarks
Copy link
Member

@rekmarks rekmarks commented Jan 23, 2026

Attempts to fix our coverage publishing job by following org security practices and publishing (i.e. pushing) to the gh-pages branch in a separate workflow and environment using the already-provisioned PUBLISH_PAGES_TOKEN.

As with so many GitHub Actions PRs, we get to find out if this works after it's merged. Based on my reading of the docs, I think that the PUBLISH_PAGES_TOKEN environment secret will be available in the publish-gh-pages workflow because we specify that it runs in the relevant environment (github-pages). That said, Bugbot has cast some doubt on this, so I guess we'll find out.


Note

Decouples coverage reporting from publishing and aligns permissions/tokens for GitHub Pages deployment.

  • Adds reusable publish-gh-pages.yml workflow to download an artifact and deploy to gh-pages using PUBLISH_PAGES_TOKEN
  • Updates main.yml to run coverage-report only on pull requests and introduce publish-coverage on pushes to main (publishes ./coverage to coverage/ on Pages)
  • Simplifies coverage-report.yml by removing the Pages deploy step and contents: write, keeping baseline fetch and PR comment posting

Written by Cursor Bugbot for commit 434cf7e. This will update automatically on new commits. Configure here.

@rekmarks rekmarks requested a review from a team as a code owner January 23, 2026 00:18
@rekmarks rekmarks changed the title fix(coverage): Use PUBLISH_PAGES_TOKEN in github-pages environment fix(ci): Use PUBLISH_PAGES_TOKEN in github-pages environment Jan 23, 2026
cursor[bot]

This comment was marked as outdated.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 23, 2026

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 88.2%
⬇️ -0.17%
5690 / 6451
🔵 Statements 88.08%
⬇️ -0.16%
5782 / 6564
🔵 Functions 87.18%
⬇️ -0.32%
1483 / 1701
🔵 Branches 84.49%
⬆️ +0.06%
2055 / 2432
File CoverageNo changed files found.
Generated in workflow #3299 for commit 434cf7e by the Vitest Coverage Report Action

Replace GITHUB_TOKEN with PUBLISH_PAGES_TOKEN for GitHub Pages publishing. Create a reusable workflow that uses the github-pages environment where the token is provisioned. Split coverage reporting and publishing into separate jobs:
- coverage-report: Posts PR comments on pull requests
- publish-coverage: Publishes to GitHub Pages on push to main

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@rekmarks rekmarks force-pushed the rekm/fix-coverage-publishing branch from a698800 to 434cf7e Compare January 23, 2026 00:27
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

@rekmarks rekmarks enabled auto-merge January 23, 2026 02:46
@rekmarks rekmarks disabled auto-merge January 23, 2026 03:41
@rekmarks rekmarks enabled auto-merge January 23, 2026 03:41
Copy link
Contributor

@sirtimid sirtimid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤞

@rekmarks rekmarks added this pull request to the merge queue Jan 23, 2026
Merged via the queue into main with commit 402bbe7 Jan 23, 2026
32 checks passed
@rekmarks rekmarks deleted the rekm/fix-coverage-publishing branch January 23, 2026 06:04
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.

3 participants