Skip to content

Conversation

@thelukewalton
Copy link
Collaborator

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

To fix the issue, we will add a permissions block to the workflow. Since the workflow involves checking out code, determining the environment, running tests, and potentially pushing changes, we will grant the minimal required permissions. Specifically:

  • contents: read for reading repository contents.
  • contents: write for pushing changes back to the repository (used in the "Update changes in GitHub repository" step).

The permissions block will be added at the workflow level to apply to all jobs unless overridden.

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 deleted the alert-autofix-2 branch June 12, 2025 09:33
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