Skip to content

Conversation

@ytterx
Copy link
Collaborator

@ytterx ytterx commented Sep 19, 2025

Potential fix for https://github.com/sede-open/setup-fortran/security/code-scanning/2

To address the problem, we need to add a permissions block to the test job (starting at line 59) within .github/workflows/test.yml. The minimal safe default is contents: read, which restricts the GITHUB_TOKEN to read-only access for repository contents (source code, etc.). This matches best practices and the recommendations given. The block should be inserted beneath the job name (line 59 or 60), before the needs, runs-on, and other settings. No new imports, definitions, or library installations are needed, only a change to the workflow YAML.

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>
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