Skip to content

Conversation

@ThyMYthOS
Copy link
Owner

Potential fix for https://github.com/ThyMYthOS/python-stiebel-eltron/security/code-scanning/1

To fix the issue, we will add a permissions block at the root level of the workflow. This block will specify contents: read, which is sufficient for the workflow's operations (e.g., checking out the repository and running tests). This change ensures that the workflow adheres to the principle of least privilege by explicitly limiting the permissions of the GITHUB_TOKEN.


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

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@ThyMYthOS ThyMYthOS changed the title Potential fix for code scanning alert no. 1: Workflow does not contain permissions Add content read permission to github test workflow May 9, 2025
@ThyMYthOS ThyMYthOS marked this pull request as ready for review May 9, 2025 20:07
@ThyMYthOS ThyMYthOS merged commit 77c5504 into master May 9, 2025
7 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.

2 participants