Skip to content

Remove token from checkout step in npm-publish.yml#50

Open
fraliv13 wants to merge 1 commit into
mainfrom
remove-token-from-npm-publish
Open

Remove token from checkout step in npm-publish.yml#50
fraliv13 wants to merge 1 commit into
mainfrom
remove-token-from-npm-publish

Conversation

@fraliv13
Copy link
Copy Markdown
Contributor

Removed token usage for checkout step in workflow.

Removed token usage for checkout step in workflow.
@fraliv13 fraliv13 requested a review from Copilot March 20, 2026 11:28
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Mar 20, 2026

⚠️ No Changeset found

Latest commit: 67a1fa3

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

Copy link
Copy Markdown
Contributor

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

Updates the npm-publish GitHub Actions workflow to stop using a Personal Access Token (PAT) for the repository checkout step, relying on default credentials instead.

Changes:

  • Removed token: ${{ secrets.PAT }} from the actions/checkout step in the publish workflow.

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

Comment thread .github/workflows/npm-publish.yml
Comment on lines 16 to 18
uses: actions/checkout@master
with:
fetch-depth: 0
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

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

This workflow later commits/pushes changes (git-auto-commit-action). Removing the PAT from the checkout step changes the git credentials to the default GITHUB_TOKEN; if the repo/org default workflow token permissions are read-only or branch protections require a PAT, the push will fail. Consider explicitly setting permissions: contents: write for the job and/or passing the intended token to the push/commit step rather than relying on checkout credentials.

Copilot uses AI. Check for mistakes.
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