Migrate the npm packages publication to trusted publishing
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
Start by locating the publish-npm-package action and the pre-release, release, manual-publish-npm, and ci workflows. Update publication to use GitHub Actions OIDC with id-token: write and the required npm CLI version, then verify dry runs and check how next versions are promoted to latest without a publish token. The issue also calls for configuring each npm package’s trusted publisher and removing the API token secrets after publication works.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Why
npm deprecates the granular access tokens with direct publish access that bypass 2FA, and publishing new versions directly with such a token will no longer be possible in January 2027, whereas our workflows publish the npm packages with an API token (see https://github.blog/changelog/2026-07-08-npm-install-time-security-and-gat-bypass2fa-deprecation/ and https://github.com/npm/cli/issues/8547#issuecomment-5918553542).
What
Migrate the publication of the npm packages to trusted publishing from GitHub Actions (OIDC), so that the publication no longer relies on long-lived npm tokens.
How
- Configure the trusted publisher (repository and workflows) of each npm package on npmjs.com (with "Allow npm dist-tag" ticked) (@jpraynaud)
- Update the
publish-npm-packageaction to publish with OIDC (id-token: writepermission, minimum npm CLI version) instead of the API token - Adapt the publication jobs of the
pre-release,release,manual-publish-npmandci(dry run) workflows - Check how the promotion of a
nextversion tolatestworks without a publish token - Remove the npm API token secrets once the publication works (@jpraynaud)
Ressources
- Ngôn ngữ chính
- Rust
- Star
- 155
- Fork
- 52
- Merge trung bình
- 2 ngày 17 giờ
- Pull request đã merge (30 ngày)
- 37
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của IntersectMBO/mithril
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
IntersectMBO/mithril#1605 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
spike :satellite:
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 10/100
IntersectMBO/mithril#3701 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Publish a DNSLink record of the immutable archives IPNS name in the Mithril networks DNS zonesCó thể đã có người làm @jpraynaud đã nhận 2 ngày trước. Đang mởfeature :rocket:
IntersectMBO/mithril#3700 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
-
feature :rocket:
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
IntersectMBO/mithril#3699 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
feature :rocket:
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
IntersectMBO/mithril#3698 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của IntersectMBO/mithril
Issue tương tự
-
ライブラリを追加Đang mởpriority middle
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
KATO-Hiro/AtCoderClans#13015 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-review
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
UCS-Care-Group/mailcraft#1429 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
priority: medium ready
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
TusanHomichi/PSIV#646 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:tui bug P1
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
agent-of-empires/agent-of-empires#5705 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày