Skip to content

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

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 2 commits into from
Jun 25, 2025

Conversation

CrazyBoy49z
Copy link
Member

Potential fix for https://github.com/step2dev/lazy-ui/security/code-scanning/1

To fix the issue, we need to add a permissions block to the workflow. Since the workflow only checks out code and runs PHPStan, it does not require write permissions. The minimal permissions required are contents: read, which allows the workflow to read repository contents. This block should be added at the root level of the workflow to apply to all jobs, as none of the jobs require additional permissions.


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

CrazyBoy49z and others added 2 commits June 25, 2025 14:09
…n permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@CrazyBoy49z CrazyBoy49z marked this pull request as ready for review June 25, 2025 11:16
@CrazyBoy49z CrazyBoy49z merged commit 042f4a6 into main Jun 25, 2025
4 of 11 checks passed
@CrazyBoy49z CrazyBoy49z deleted the alert-autofix-1 branch June 25, 2025 11: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