Skip to content

🚀 Potential fix for code scanning alert no. 8: Workflow does not contain permissions#71

Merged
casenave merged 2 commits intomainfrom
alert-autofix-8
Jun 12, 2025
Merged

🚀 Potential fix for code scanning alert no. 8: Workflow does not contain permissions#71
casenave merged 2 commits intomainfrom
alert-autofix-8

Conversation

@casenave
Copy link
Copy Markdown
Member

Potential fix for https://github.com/PLAID-lib/plaid/security/code-scanning/8

To fix the issue, we need to add a permissions block to the build job. The build job only requires read access to repository contents, so we will set contents: read as the minimal permissions required. This ensures the job does not inherit unnecessary write permissions from the repository.

The changes will be made in the .github/workflows/publish-pypi.yml file, specifically within the build job definition.


Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…n permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@casenave casenave changed the title Potential fix for code scanning alert no. 8: Workflow does not contain permissions 🚀 Potential fix for code scanning alert no. 8: Workflow does not contain permissions Jun 12, 2025
@codecov
Copy link
Copy Markdown

codecov bot commented Jun 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@casenave casenave marked this pull request as ready for review June 12, 2025 14:44
@casenave casenave requested a review from a team as a code owner June 12, 2025 14:44
@casenave casenave merged commit 9642a03 into main Jun 12, 2025
21 checks passed
@casenave casenave deleted the alert-autofix-8 branch June 12, 2025 14:45
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