Skip to content

fix: Potential fix for code scanning alert no. 3: Workflow does not contain permissions#188

Draft
teolemon wants to merge 1 commit intomainfrom
alert-autofix-3
Draft

fix: Potential fix for code scanning alert no. 3: Workflow does not contain permissions#188
teolemon wants to merge 1 commit intomainfrom
alert-autofix-3

Conversation

@teolemon
Copy link
Copy Markdown
Member

Potential fix for https://github.com/openfoodfacts/facets-knowledge-panels/security/code-scanning/3

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 correctly. Since the workflow needs to read the repository contents and push changes to the pull request, we will set contents: write and pull-requests: write. These permissions are sufficient for the workflow's operations and limit access to other resources.

The permissions block will be added immediately after the name field in the workflow file.


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>
@teolemon teolemon changed the title Potential fix for code scanning alert no. 3: Workflow does not contain permissions fix: Potential fix for code scanning alert no. 3: Workflow does not contain permissions Aug 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🆕 New

Development

Successfully merging this pull request may close these issues.

1 participant