본문으로 건너뛰기
cccskills
무료GitHub에 공개한국어 소개

npm-trusted-publishing

GitHub Actions의 npm 게시를 저장된 토큰에서 단기 인증을 사용하는 신뢰 게시 방식으로 옮깁니다. 워크플로 권한, 도구 버전, 패키지 설정을 점검하고 인증 실패와 저장소 정보 불일치를 진단합니다.

원문원문 설명 보기

Set up or fix npm trusted publishing (OIDC) in GitHub Actions and remove NPM_TOKEN. Use for ENEEDAUTH, E404 on PUT, E422 repository.url, or migrating off 2FA-bypass tokens before January 2027.

github/awesome-copilot스타 40,562(GitHub 40,562 + cccskills 0)
연동 도구GitHub

실행 점수 미검증

설치 방법 보기

이럴 때 유용합니다

  • npm 게시용 저장 토큰 교체
  • ENEEDAUTH 또는 E404 게시 오류 조사
  • repository.url 관련 E422 수정
  • 적용 전 설정 변경 사항 검토

한국어 소개

할 수 있는 일

이 스킬은 GitHub Actions의 npm 패키지 게시에서 저장된 NPM_TOKEN을 제거하고 신뢰 게시 방식으로 옮기는 일을 돕습니다. 신뢰 게시에서는 OIDC라는 단기 인증 방식을 사용합니다. 워크플로 권한, npm 버전, 환경 변수, npm에 등록된 게시자 정보를 점검하며 게시 중 발생하는 ENEEDAUTH, E404, repository.url 관련 E422 오류도 진단합니다.

이럴 때 유용합니다

게시 토큰을 워크플로에서 제거하려 하거나 마이그레이션 도중 게시가 실패할 때 사용할 수 있습니다. go-tokenless로 변경 예정 차이와 필요한 명령을 확인하고 설정 변경을 적용하는 방법도 안내받을 수 있습니다.

사용 예시

  • “이번 릴리스를 신뢰 게시 방식으로 옮기고 남아 있는 토큰 설정을 확인해 주세요.”
  • “npm 게시가 ENEEDAUTH 오류로 실패하는 원인을 찾아 주세요.”

주의 사항

이 절차에는 GitHub 호스팅 실행기와 npm 11.5.1 이상이 필요합니다. npm에 게시자를 등록하고 기존 토큰을 삭제하려면 사용자가 npm에 로그인하고 2단계 인증을 해야 합니다. 아직 만들어지지 않은 패키지는 먼저 한 번 수동으로 게시해야 합니다. 토큰 없이 게시에 성공한 다음에만 기존 토큰을 삭제하거나 폐기합니다.

이 소개문은 공개된 SKILL.md를 바탕으로 AI(OpenAI Codex)가 작성했습니다. 정확한 사양은 아래 원문을 확인하세요.

문서 점검

AI가 SKILL.md의 내용에서 주의가 필요한 작업과 도입 전제를 확인했습니다. 점수는 실제로 실행한 결과(실행 검증)만으로 매깁니다.

안전성전송·삭제·명령 실행 등을 명시하고 있는가
A양호위험한 트리거를 피하고 게시 성공 후 토큰을 삭제하라고 명시합니다.
도입의 용이성필요한 도구나 API 키가 적고 적혀 있는가
B일부 부족GitHub 호스팅 실행기, npm 11.5.1 이상, npm 로그인과 2단계 인증이 필요합니다.

점수에는 넣지 않았습니다. 2026년 10월 25일 기준으로 AI(OpenAI Codex)가 판정했습니다. 참고용이므로 설치 전에 원문도 확인해 주세요.

평가가 다르다고 생각되면 재검토를 요청하기

어느 항목이 왜 다르다고 생각하는지 적어 주세요. 로그인은 필요 없습니다. SKILL.md와 대조해 평가를 다시 만들고 이곳에 반영합니다.

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

포함된 파일(1)

  • SKILL.md5.1 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

npm Trusted Publishing

Moves a GitHub Actions release from a stored NPM_TOKEN to npm trusted publishing. GitHub signs a short-lived OIDC token for the run, and npm exchanges it for a publish token. It also diagnoses the misleading errors a half-finished migration produces. From January 2027, granular tokens that bypass 2FA can no longer publish directly (npm docs).

When to Use This Skill

  • The user wants to remove NPM_TOKEN / NODE_AUTH_TOKEN from a release workflow or set up OIDC or provenance publishing.
  • A CI publish fails with ENEEDAUTH, 404 Not Found - PUT https://registry.npmjs.org/... or E422 ... repository.url.
  • Release logs show npm notice npm tokens that bypass 2FA are being restricted.

Checklist (all must hold)

Work through every item. Missing any one of them produces the errors above.

  1. OIDC permission: the publishing job has permissions: id-token: write. If the job had no permissions block, keep the scopes it needs, such as contents: write for tags and releases or pull-requests: write for changesets. Adding a block drops every scope you don't list.
  2. npm 11.5.1 or newer runs the publish. Node 24 ships it. Node 22 ships npm 10, so add npm install -g npm@^11.5.1 (or a newer pinned major) before publishing. pnpm 10 hands the publish to npm, so the same rule applies. Yarn Berry needs 4.10.3+.
  3. No token reaches the publish step. Remove NODE_AUTH_TOKEN, NPM_TOKEN and YARN_NPM_AUTH_TOKEN from the step, the job and the workflow env, and delete script lines that write _authToken or npmAuthToken. npm tries OIDC first but falls back to a configured token, so a leftover token keeps the old credential in use. Keep a read-only token only on install steps that need private packages.
  4. actions/setup-node has registry-url: https://registry.npmjs.org.
  5. package.json repository.url names the same GitHub repo, for example git+https://github.com/OWNER/REPO.git, plus directory for workspace packages. A mismatch gives E422.
  6. A trusted publisher exists on npm for each package (npmjs.com → package → Settings → Trusted publishing), or with npm 11.15+: npm trust github <pkg> --repo OWNER/REPO --file release.yml --allow-publish --yes
    • The workflow file name must match exactly; it is case-sensitive and includes .yml.
    • For a reusable workflow, use the calling workflow's file name, and grant id-token: write in the caller too.
    • If the job uses environment:, set the same environment on the publisher.
    • A package that doesn't exist yet must be published once by hand first.
  7. GitHub-hosted runner. Self-hosted runners can't use trusted publishing.

Security Rules

  • Untrusted triggers: never add id-token: write to a job in a workflow triggered by pull_request_target, issue_comment, workflow_run or discussion. It would let outsiders exchange an OIDC token and publish. Move publishing to release, push (tags) or workflow_dispatch.
  • Dry runs: npm publish --dry-run and npm pack jobs don't publish, so they need no id-token and no trusted publisher.
  • The old token: delete the secret (gh secret delete NPM_TOKEN) and revoke it on npmjs.com only after the first tokenless release succeeds.

Error Guide

ErrorUsual cause
ENEEDAUTHNo id-token: write, npm older than 11.5.1, or a workflow file name that doesn't match the trusted publisher
404 Not Found - PUT https://registry.npmjs.org/<pkg>Same as above, a mismatched environment, no trusted publisher yet, or an expired token still being used
E422 ... repository.urlrepository is missing in package.json or names another repo
Publish still uses the tokenA token remains in env, .npmrc or .yarnrc.yml (checklist item 3)

Example

jobs:
  publish:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      id-token: write
    steps:
      - uses: actions/checkout@v5
      - uses: actions/setup-node@v6
        with:
          node-version: 24
          registry-url: https://registry.npmjs.org
      - run: npm ci
      - run: npm publish --access public   # no NODE_AUTH_TOKEN

Automating It

go-tokenless (MIT) applies this checklist to an existing repository. Use it when the user wants the edits made for them.

  • npx go-tokenless prints a read-only diff of the workflow and package.json changes, plus the npm trust commands.
  • npx go-tokenless apply writes the changes.
  • It refuses the unsafe cases above instead of guessing.

Limitations

  • The npm side (adding the trusted publisher, deleting the old token) needs the user's npm login with 2FA. Hand those steps to the user.
  • Trusted publishing covers GitHub Actions, GitLab.com and CircleCI cloud only.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

acquire-codebase-knowledge

무료요약 있음

기존 프로젝트의 코드와 설정을 조사해 기술 구성, 구조, 아키텍처, 규칙, 연동, 테스트, 우려 사항을 다루는 문서 7개를 작성합니다. 근거 파일을 연결하고 미확인 항목을 표시하며, 계획과 실제 구현의 차이를 드러냅니다.

  • 익숙하지 않은 코드베이스 파악하기
  • 프로젝트 인수인계 문서 준비하기
  • 설계 문서와 실제 구현 비교하기
github/awesome-copilot4.1만2026년 10월 29일 업데이트

acreadiness-assess

무료요약 있음

AgentRC로 저장소의 AI 에이전트 활용 준비도를 평가하고 독립 실행형 HTML 보고서를 생성합니다. 9개 영역의 점수와 우선순위별 개선안을 확인하고, 조직에 맞춘 채점 정책도 적용할 수 있습니다.

  • AI 에이전트 도입 전 준비도 확인
  • 평가 결과에 따라 개선 우선순위 결정
  • 조직별 정책으로 점수 산정
github/awesome-copilot4.1만2026년 10월 29일 업데이트

프로젝트의 실제 코드에서 언어, 프레임워크, 개발 관례를 파악해 AI 코딩 에이전트용 지침 파일을 생성하거나 갱신합니다. 하나의 파일에 모으거나 주제와 프로젝트 영역별로 나누며, 쓰기 전에 변경 내용을 미리 볼 수 있습니다.

  • VS Code Copilot용 지침 만들기
  • 바뀐 개발 규칙을 지침에 반영
  • 모노레포 영역별 규칙 정리
github/awesome-copilot4.1만2026년 10월 29일 업데이트

acreadiness-policy

무료요약 있음

AgentRC 준비도 평가를 팀이나 조직의 기준에 맞게 조정합니다. JSON 정책에서 검사 중요도와 수준을 바꾸고, 불필요한 검사를 끄며, 통과율을 설정해 CI 자동 검사에도 적용할 수 있습니다.

  • 조직 공통 평가 기준 만들기
  • AI 관련 준비 상태만 평가
  • 검사 항목의 중요도 조정
github/awesome-copilot4.1만2026년 10월 29일 업데이트

ad-campaign-analyzer

무료요약 있음

제공한 광고 성과 데이터를 분석해 낭비되는 지출과 성과가 좋은 광고를 찾고, 중단·예산 증액·추가 테스트 후보를 정리합니다. 여러 플랫폼을 비교하고 A/B 테스트의 차이를 평가해 예산 재배분 방안도 제시합니다.

  • 중단할 광고나 키워드 찾기
  • 예산을 늘릴 캠페인과 대상 찾기
  • A/B 테스트 결과의 유의성 확인
github/awesome-copilot4.1만2026년 10월 29일 업데이트

add-educational-comments

무료요약 있음

지정한 코드 파일에 학습용 주석을 추가해 문법, 프로그래밍 개념, 설계 선택의 이유를 설명합니다. 독자의 지식에 맞춰 설명의 깊이와 반복 정도를 조절하며 파일 구조와 형식을 유지합니다.

  • 기존 코드에 초보자용 설명 추가
  • 문법이나 설계 방식을 선택한 이유 설명
  • 독자의 경험에 맞춰 주석 조정
github/awesome-copilot4.1만2026년 10월 29일 업데이트

github의 스킬 모두 보기

이 스킬의 문제 신고