Skip to content

Replace GH_NPM_PACKAGE_READ_TOKEN with GITHUB_TOKEN#45

Open
ntotten wants to merge 2 commits intomainfrom
remove-gh-npm-package-read-token
Open

Replace GH_NPM_PACKAGE_READ_TOKEN with GITHUB_TOKEN#45
ntotten wants to merge 2 commits intomainfrom
remove-gh-npm-package-read-token

Conversation

@ntotten
Copy link
Copy Markdown
Member

@ntotten ntotten commented Apr 14, 2026

Summary

  • Replaces GH_NPM_PACKAGE_READ_TOKEN PAT with native GITHUB_TOKEN for npm package access
  • Private @zuplo/* packages now grant Actions access to consuming repos directly via GitHub's package permissions

Changes

  • Workflow files: ${{ secrets.GH_NPM_PACKAGE_READ_TOKEN }}${{ github.token }}
  • Dependabot files: ${{ secrets.GH_NPM_PACKAGE_READ_TOKEN }}${{ secrets.GITHUB_TOKEN }}

Test plan

  • CI passes with the new token configuration
  • Private @zuplo/* packages install successfully

🤖 Generated with Claude Code

Use GitHub's native package access grants instead of a shared PAT
for installing private @zuplo npm packages.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 14, 2026 22:16
@zuplo zuplo Bot temporarily deployed to Preview - Developer Portal April 14, 2026 22:16 Destroyed
@zuplo
Copy link
Copy Markdown

zuplo Bot commented Apr 14, 2026

The latest build updates on your Zuplo project. Learn more about Zuplo for GitHub ↗︎

Name Status Preview Updated (UTC)
Developer Portal ⏭️ Skipped (Inspect) Visit Preview Apr 15, 2026, 12:27 PM
API Gateway ✅ Ready (Inspect) Visit Preview Apr 15, 2026, 12:27 PM

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR replaces a custom PAT (GH_NPM_PACKAGE_READ_TOKEN) with the native GitHub-provided token for accessing private @zuplo/* packages from CI, and updates Dependabot registry auth accordingly.

Changes:

  • Update the main CI workflow to use ${{ github.token }} for npm package authentication.
  • Update Dependabot’s npm registry token reference to ${{ secrets.GITHUB_TOKEN }}.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/main.yaml Switch npm auth env var from PAT secret to github.token during npm install.
.github/dependabot.yml Switch Dependabot registry token from PAT secret to secrets.GITHUB_TOKEN.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/main.yaml
Comment thread .github/dependabot.yml
Required for GITHUB_TOKEN to access private @zuplo npm packages
when explicit permissions are set on the job.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

2 participants