Skip to content

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

Merged
gustaavik merged 1 commit into
mainfrom
alert-autofix-1
May 9, 2025
Merged

Potential fix for code scanning alert no. 1: Workflow does not contain permissions#22
gustaavik merged 1 commit into
mainfrom
alert-autofix-1

Conversation

@gustaavik
Copy link
Copy Markdown
Member

Potential fix for https://github.com/Zenfulcode/CommercifyGO/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 current workflow since it only checks out the repository and runs build and test commands. No write permissions are required.

The permissions block will be added immediately after the name field (line 4) to apply to all jobs in the workflow.


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>
@gustaavik gustaavik marked this pull request as ready for review May 9, 2025 10:54
@gustaavik gustaavik merged commit 9501966 into main May 9, 2025
4 checks passed
@gustaavik gustaavik deleted the alert-autofix-1 branch May 9, 2025 10:54
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