Skip to content

Potential fix for code scanning alert no. 4: Workflow does not contain permissions#2

Merged
ReuelAlbert-Dev merged 1 commit intomainfrom
alert-autofix-4
Aug 24, 2025
Merged

Potential fix for code scanning alert no. 4: Workflow does not contain permissions#2
ReuelAlbert-Dev merged 1 commit intomainfrom
alert-autofix-4

Conversation

@ReuelAlbert-Dev
Copy link
Copy Markdown
Owner

Potential fix for https://github.com/ReuelAlbert-Dev/python-sdk/security/code-scanning/4

To fix the problem, we should add a permissions block to the checks job in .github/workflows/publish-pypi.yml. Since the checks job likely only needs read access (for running tests, linting, etc.), we can set contents: read as a minimal starting point. This change should be made directly under the checks: job definition, before the uses: line. No additional imports or definitions are needed; this is a YAML configuration change.

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>
@ReuelAlbert-Dev ReuelAlbert-Dev marked this pull request as ready for review August 24, 2025 03:05
@ReuelAlbert-Dev ReuelAlbert-Dev merged commit 75abbb3 into main Aug 24, 2025
12 of 13 checks passed
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.

1 participant