Skip to content

Restrict default token permissions in create-release workflow - #328

Draft
JarryShaw with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-code-scanning-alerts-again
Draft

Restrict default token permissions in create-release workflow#328
JarryShaw with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-code-scanning-alerts-again

Conversation

Copilot AI commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

This change addresses the code scanning finding on create-release.yml by explicitly denying unused GITHUB_TOKEN permissions in the release tagging path. The affected job already authenticates with secrets.PYPCAPKIT, so the workflow now documents and enforces that narrower permission model.

  • Workflow permissions

    • Add an explicit empty permissions block to the tag job in .github/workflows/create-release.yml
    • Prevent the job from inheriting repository/org default GITHUB_TOKEN scopes
  • Release tagging path

    • Preserve the existing authentication flow based on secrets.PYPCAPKIT
    • Leave release creation and package publishing behavior unchanged
tag:
  name: Conda Tag
  runs-on: ubuntu-latest
  permissions: {}

Co-authored-by: JarryShaw <15666417+JarryShaw@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix code scanning alerts flagged in repository Restrict default token permissions in create-release workflow Aug 13, 2026
Copilot AI requested a review from JarryShaw August 13, 2026 04:15
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