Skip to content

Conversation

@teolemon
Copy link
Member

@teolemon teolemon commented Nov 4, 2025

Potential fix for https://github.com/openfoodfacts/openfoodfacts-web/security/code-scanning/26

To fix the problem, add a permissions block to the workflow. Since the job only checks file contents and does not require read or write access to the repository, the minimal permission needed is contents: read. Add the following at the root of the workflow, beneath the name field and before the on block (or directly under on if you prefer, but conventionally it's placed near the top so it's clear for all jobs). No other functionality is altered, and this does not affect any of the job steps. Only .github/workflows/check_strings.yml needs to be updated.


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>
@github-project-automation github-project-automation bot moved this to To Discuss & Validate in 📢 Open Food Facts Marketing Nov 4, 2025
@teolemon teolemon changed the title Potential fix for code scanning alert no. 26: Workflow does not contain permissions ci: Potential fix for code scanning alert no. 26: Workflow does not contain permissions Nov 4, 2025
@teolemon teolemon marked this pull request as ready for review November 4, 2025 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: To Discuss & Validate

Development

Successfully merging this pull request may close these issues.

2 participants