Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 6, 2025

Conversation

ReuelAlbert-Dev
Copy link
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 6, 2025 04:35
@ReuelAlbert-Dev ReuelAlbert-Dev merged commit 3efa629 into main Aug 6, 2025
11 of 13 checks passed
@ReuelAlbert-Dev ReuelAlbert-Dev deleted the alert-autofix-4 branch August 6, 2025 04:36
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