Skip to content

Update PyPI workflow to include permissions#25

Merged
awvwgk merged 1 commit intomicrosoft:mainfrom
awvwgk:pypi-permissions
Feb 5, 2026
Merged

Update PyPI workflow to include permissions#25
awvwgk merged 1 commit intomicrosoft:mainfrom
awvwgk:pypi-permissions

Conversation

@awvwgk
Copy link
Member

@awvwgk awvwgk commented Feb 3, 2026

Add permissions for reading contents in PyPI workflow

Add permissions for reading contents in PyPI workflow
Copy link

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 adds explicit permissions configuration to the PyPI publishing workflow to follow security best practices by implementing the principle of least privilege. The workflow already has job-level permissions for the publishing step but lacked workflow-level permissions.

Changes:

  • Added workflow-level permissions block with contents: read to the PyPI workflow

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

@awvwgk awvwgk merged commit 1466fbc into microsoft:main Feb 5, 2026
18 checks passed
@awvwgk awvwgk deleted the pypi-permissions branch February 5, 2026 09:10
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