Skip to content

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

Merged
kehiy merged 2 commits intomainfrom
alert-autofix-4
May 4, 2025
Merged

Potential fix for code scanning alert no. 4: Workflow does not contain permissions#135
kehiy merged 2 commits intomainfrom
alert-autofix-4

Conversation

@kehiy
Copy link
Member

@kehiy kehiy commented May 4, 2025

Potential fix for https://github.com/dezh-tech/immortal/security/code-scanning/4

To fix the issue, we will add a permissions block at the root of the workflow file. Since the workflow only checks out code and runs tests, it does not require write permissions. The minimal required permission is contents: read, which allows the workflow to read the repository contents. This change ensures the workflow adheres to the principle of least privilege.


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>
@kehiy kehiy marked this pull request as ready for review May 4, 2025 18:11
@kehiy kehiy merged commit 024229a into main May 4, 2025
4 of 5 checks passed
@kehiy kehiy deleted the alert-autofix-4 branch May 4, 2025 18:16
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