Skip to content

npm 게시를 trusted publishing(OIDC)으로 전환 - #168

Merged
SonAIengine merged 1 commit into
mainfrom
ci/npm-trusted-publishing
Nov 28, 2026
Merged

SonAIengine merged 1 commit into
mainfrom
ci/npm-trusted-publishing

Conversation

@SonAIengine

Copy link
Copy Markdown
Contributor

요약

  • bypass-2FA granular token의 직접 게시 권한이 2027-01에 제거되므로 npm 게시를 trusted publishing으로 옮긴다. ADR-0095가 ADR-0034를 대체한다.
  • publish-npm job: NPM_TOKEN/NODE_AUTH_TOKEN/registry-url 제거, npm 11.21.3 tarball을 고정 sha512로 확인 후 설치(OIDC dist-tag는 11.21.0 이상 필요, Node 24.20.0 내장은 11.19.0).
  • publish.mjs는 변경 없음(provenance, launcher-last, SRI·dist-tag 사후검증 유지).
  • 문서(npm-distribution, releasing)와 검사 스크립트를 새 경계로 갱신.

검증

  • check-npm-distribution-workflow.sh, check-release-workflow.sh, check-rc3-public-docs.sh, preflight-release.mjs, npm test 20/20 통과.
  • workflow 검사 변형 3개(token 재도입, integrity 비교 제거, registry-url 재추가) 모두 거절.
  • 고정 integrity가 registry tarball sha512와 일치, 설치한 npm 11.21.3에 npm trust 존재.
  • 모델 요청 영향 없음(CI·문서만 변경)이라 diff-model-requests는 생략.

남은 일

  • 다음 rc 직전 여섯 package trusted publisher 등록(2FA), launcher에 Allow npm dist-tag.
  • 첫 OIDC 게시 검증 뒤 token 금지 설정과 NPM_TOKEN 폐기.

🤖 Generated with Claude Code

bypass-2FA token의 직접 게시가 2027-01에 막히는 데 대응해 ADR-0034를 ADR-0095로 대체한다.
publish-npm job에서 NPM_TOKEN·NODE_AUTH_TOKEN·registry-url을 빼고, OIDC dist-tag를 지원하는
npm 11.21.3을 고정 sha512로 확인한 뒤 설치한다(Node 24.20.0 내장 npm 11.19.0은 미지원).
publish.mjs는 그대로다. workflow 검사는 token 재도입·integrity 비교 제거·registry-url 3가지 변형을
모두 거절하는 것을 확인했다. 실제 OIDC 게시는 trusted publisher 등록 뒤 다음 rc에서 검증한다.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@SonAIengine
SonAIengine merged commit 112e2d5 into main Nov 28, 2026
3 checks passed
@SonAIengine
SonAIengine deleted the ci/npm-trusted-publishing branch November 28, 2026 16:26
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.

1 participant