Skip to content

Potential fix for code scanning alert no. 3: Workflow does not contain permissions#134

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

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

Conversation

@kehiy
Copy link
Member

@kehiy kehiy commented May 4, 2025

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

To fix the issue, we will add a permissions block at the root level of the workflow. Since this workflow only performs linting and formatting checks, 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 that 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 7e743b5 into main May 4, 2025
4 of 5 checks passed
@kehiy kehiy deleted the alert-autofix-3 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