Skip to content

Comments

Potential fix for code scanning alert no. 5: Workflow does not contain permissions#118

Closed
shivam-sood89 wants to merge 1 commit intomainfrom
alert-autofix-5
Closed

Potential fix for code scanning alert no. 5: Workflow does not contain permissions#118
shivam-sood89 wants to merge 1 commit intomainfrom
alert-autofix-5

Conversation

@shivam-sood89
Copy link
Collaborator

Potential fix for https://github.com/seequent/return-dispatch/security/code-scanning/5

To fix the issue, we will add a permissions block at the root of the workflow file. This block will explicitly define the minimal permissions required for the workflow to function. Since the workflow only echoes input values and does not interact with repository contents or other resources, we can set contents: read as the minimal permission. This ensures that the workflow has no unnecessary write permissions.


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>
@shivam-sood89 shivam-sood89 marked this pull request as ready for review June 23, 2025 15:25
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.

2 participants