Skip to content

Conversation

@shivam-sood89
Copy link
Collaborator

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

To fix the issue, we will add a permissions block at the root of the workflow file. This block will define the least privileges required for the workflow to function correctly. Based on the provided workflow, the following permissions are likely sufficient:

  • contents: read for accessing repository contents.
  • pull-requests: write if the workflow interacts with pull requests (e.g., updating statuses or comments).
  • actions: read for using actions.

The permissions block will be added at the root level to apply to all jobs in the workflow. If specific jobs require different permissions, additional permissions blocks can be added at the job level.


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:24
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.

3 participants