Skip to content

ci: declare explicit token permissions in maintenance workflows#13384

Open
Rohan5commit wants to merge 1 commit intonextauthjs:mainfrom
Rohan5commit:ci/declare-explicit-workflow-token-permissions
Open

ci: declare explicit token permissions in maintenance workflows#13384
Rohan5commit wants to merge 1 commit intonextauthjs:mainfrom
Rohan5commit:ci/declare-explicit-workflow-token-permissions

Conversation

@Rohan5commit
Copy link

Summary

  • add explicit permissions to codeql-analysis.yml
  • add explicit permissions to pr-labeler.yml
  • add explicit permissions to sync-examples.yml

Permission mapping

  • codeql-analysis.yml
    • actions: read
    • contents: read
    • security-events: write (for CodeQL results upload)
  • pr-labeler.yml
    • contents: read
    • pull-requests: write (to apply labels)
  • sync-examples.yml
    • contents: read (for checkout only)

Why

These workflows previously relied on implicit default GITHUB_TOKEN scopes. Declaring least-privilege permissions makes required access explicit and reduces unnecessary token exposure.

@vercel
Copy link

vercel bot commented Feb 22, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
auth-docs Ready Ready Preview, Comment Feb 22, 2026 3:23am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
next-auth-docs Ignored Ignored Preview Feb 22, 2026 3:23am

Request Review

@vercel
Copy link

vercel bot commented Feb 22, 2026

@rohan436 is attempting to deploy a commit to the authjs Team on Vercel.

A member of the Team first needs to authorize it.

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