Skip to content

👷 Grant discussions: write to release jobs#6932

Merged
dubzzz merged 2 commits into
mainfrom
claude/fix-release-discussion-category-Hi34L
May 3, 2026
Merged

👷 Grant discussions: write to release jobs#6932
dubzzz merged 2 commits into
mainfrom
claude/fix-release-discussion-category-Hi34L

Conversation

@dubzzz

@dubzzz dubzzz commented May 3, 2026

Copy link
Copy Markdown
Owner

The release publish jobs use softprops/action-gh-release with
discussion_category_name to link an Announcements discussion to each
release, but the GITHUB_TOKEN was scoped to contents/id-token/attestations
write only. With discussions permission missing, GitHub's release update
endpoint surfaces the misleading error "Discussion could not be created.
Make sure you passed a valid category name." (and the action retries
exhausted), even though the category exists and the name is valid.

This is also why no past release ever had a linked discussion regardless
of the "Announcements" / "announcements" casing tried in #6877.

Add discussions: write to every per-package publish job so the linked
discussion can actually be created when finalizing the release.

The release publish jobs use softprops/action-gh-release with
discussion_category_name to link an Announcements discussion to each
release, but the GITHUB_TOKEN was scoped to contents/id-token/attestations
write only. With discussions permission missing, GitHub's release update
endpoint surfaces the misleading error "Discussion could not be created.
Make sure you passed a valid category name." (and the action retries
exhausted), even though the category exists and the name is valid.

This is also why no past release ever had a linked discussion regardless
of the "Announcements" / "announcements" casing tried in #6877.

Add discussions: write to every per-package publish job so the linked
discussion can actually be created when finalizing the release.
@changeset-bot

changeset-bot Bot commented May 3, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 91b6d63

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

github-actions Bot commented May 3, 2026

Copy link
Copy Markdown
Contributor

👋 It looks like the PR template was not used for this pull request.

Please edit the PR description to use the template, or close this PR and open a new one that uses it.
Not using the template may result in your change not being reviewed.

The template includes:

  • A Description section
  • A Checklist section with items to verify before submitting

Thank you for your contribution! 🙏

@dubzzz dubzzz changed the title 👷 Grant discussions: write to release jobs 👷 Grant discussions: write to release jobs May 3, 2026
@socket-security

socket-security Bot commented May 3, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedbuffer@​6.0.39910010075100
Addedclsx@​2.1.11001009480100
Addedcross-env@​10.1.010010010082100

View full report

@dubzzz

dubzzz commented May 3, 2026

Copy link
Copy Markdown
Owner Author

@claude fix zizmor job

@claude

claude Bot commented May 3, 2026

Copy link
Copy Markdown
Contributor

Claude finished @dubzzz's task in 2m 20s —— View job


Todo List

  • Check CI status to find zizmor job failure
  • Read zizmor logs to understand the issue
  • Read the modified workflow file and zizmor config
  • Fix zizmor by updating the ignore line numbers in .github/zizmor.yml
  • Commit and push the fix

Summary

Zizmor's Workflow Security Audit job (run 25290183318) failed with 7 cache-poisoning findings on build-status.yml at lines 603, 681, 759, 837, 915, 993, 1071 — all actions/setup-node calls in the release publish jobs. These were already suppressed in .github/zizmor.yml, but the existing ignore list pointed to lines 602, 679, 756, 833, 910, 987, 1064.

Adding discussions: write to each of the 7 publish jobs shifted every subsequent setup-node line down by one per insertion (cumulative +1, +2, +3, +4, +5, +6, +7 — matching exactly the gap between the old and new line numbers). The suppressions therefore stopped matching.

Fix: updated the cache-poisoning ignore list in .github/zizmor.yml to the new line numbers (602→603, 679→681, 756→759, 833→837, 910→915, 987→993, 1064→1071). Committed in 91b6d63 and pushed.

Note: I cannot edit files under .github/workflows/ (GitHub App permission limitation), but .github/zizmor.yml lives at the .github/ root, so this fix was applicable.
Branch

Adding `discussions: write` to each release job shifted the
setup-node line numbers by one per occurrence (602→603, 679→681,
756→759, 833→837, 910→915, 987→993, 1064→1071). Update the
cache-poisoning ignore list in .github/zizmor.yml accordingly so
the Workflow Security Audit job passes again.

Co-authored-by: Nicolas DUBIEN <[email protected]>
@pkg-pr-new

pkg-pr-new Bot commented May 3, 2026

Copy link
Copy Markdown
@fast-check/ava

npm i https://pkg.pr.new/@fast-check/ava@6932

fast-check

npm i https://pkg.pr.new/fast-check@6932

@fast-check/jest

npm i https://pkg.pr.new/@fast-check/jest@6932

@fast-check/packaged

npm i https://pkg.pr.new/@fast-check/packaged@6932

@fast-check/poisoning

npm i https://pkg.pr.new/@fast-check/poisoning@6932

@fast-check/vitest

npm i https://pkg.pr.new/@fast-check/vitest@6932

@fast-check/worker

npm i https://pkg.pr.new/@fast-check/worker@6932

commit: 91b6d63

@dubzzz
dubzzz enabled auto-merge (squash) May 3, 2026 20:47
@dubzzz
dubzzz merged commit bc66688 into main May 3, 2026
46 checks passed
@dubzzz
dubzzz deleted the claude/fix-release-discussion-category-Hi34L branch May 3, 2026 20:56
@codecov

codecov Bot commented May 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.78%. Comparing base (d6e2eee) to head (91b6d63).
⚠️ Report is 22 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6932      +/-   ##
==========================================
+ Coverage   94.75%   94.78%   +0.03%     
==========================================
  Files         211      212       +1     
  Lines        5778     5833      +55     
  Branches     1527     1535       +8     
==========================================
+ Hits         5475     5529      +54     
- Misses        295      296       +1     
  Partials        8        8              
Flag Coverage Δ
tests 94.78% <ø> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants