Skip to content

fix: Potential fix for code scanning alert no. 12: Workflow does not contain permissions#187

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

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

Conversation

@teolemon
Copy link
Copy Markdown
Member

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

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 purpose (running the release-please action), it likely needs read access to repository contents and write access to pull requests.

The permissions block can be added at the root level of the workflow to apply to all jobs or within the specific job (release-please) to limit permissions to that job only. In this case, adding it at the job level is more precise.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…in 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. 12: Workflow does not contain permissions fix: Potential fix for code scanning alert no. 12: 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