Skip to content

Conversation

@thelukewalton
Copy link
Collaborator

Potential fix for https://github.com/ZebraDevs/flutter-code-quality/security/code-scanning/3

To fix the issue, we need to add a permissions block to the workflow. This block should specify the least privileges required for the workflow to function correctly. Based on the workflow's actions, the following permissions are appropriate:

  • contents: read for reading repository contents.
  • pull-requests: write for interacting with pull requests.
  • actions: write for managing workflow outputs.

The permissions block can be added at the root level of the workflow to apply to all jobs or within each job to customize permissions for specific tasks.


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>
@thelukewalton thelukewalton marked this pull request as ready for review September 10, 2025 10:32
@thelukewalton thelukewalton merged commit 16cb9ab into main Sep 10, 2025
5 of 7 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.

2 participants