Skip to content

Comments

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

Merged
sharonstout1981 merged 1 commit intomasterfrom
alert-autofix-1
Jun 10, 2025
Merged

Potential fix for code scanning alert no. 1: Workflow does not contain permissions#12
sharonstout1981 merged 1 commit intomasterfrom
alert-autofix-1

Conversation

@sharonstout1981
Copy link
Member

Potential fix for https://github.com/Pearl1981/unstop/security/code-scanning/1

To fix the issue, add a permissions block at the root level of the workflow file. This block will explicitly define the permissions for the GITHUB_TOKEN, limiting it to contents: read. This is sufficient for the actions used in the workflow, as they primarily require read access to the repository contents.

The permissions block should be added immediately after the name key (line 39) to apply to all jobs in the workflow. No additional changes are required for individual jobs unless specific permissions are needed.

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>
Signed-off-by: Pearl <42342605+sharonstout1981@users.noreply.github.com>
@sharonstout1981 sharonstout1981 marked this pull request as ready for review June 10, 2025 07:18
@sharonstout1981 sharonstout1981 merged commit 62d73be into master Jun 10, 2025
2 of 4 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.

1 participant