Skip to content

Conversation

@lenucksi
Copy link
Member

Potential fix for https://github.com/InnerSourceCommons/InnerSourcePatterns/security/code-scanning/9

To fix this problem, add an explicit permissions block as recommended to the workflow (either at the root level for all jobs, or at the job level for just this job). Since the workflow only needs to read repository contents (it does not create issues, pull requests, releases, or modify anything), grant only contents: read permission. The best way is to add this block just before jobs: at the top level of the YAML file, so every job inherits it (and it is easy to edit later if needed). No new imports or complex configuration is required.


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>
@spier spier added the Type - Maintenance / Cleanup Maintaining / cleaning the repo is the main focus of this issue / PR label Dec 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type - Maintenance / Cleanup Maintaining / cleaning the repo is the main focus of this issue / PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants