Skip to content

Potential fix for code scanning alert no. 10: Workflow does not contain permissions#877

Draft
lenucksi wants to merge 1 commit intomainfrom
alert-autofix-10
Draft

Potential fix for code scanning alert no. 10: Workflow does not contain permissions#877
lenucksi wants to merge 1 commit intomainfrom
alert-autofix-10

Conversation

@lenucksi
Copy link
Member

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

To fix this problem, add an explicit permissions block at the workflow or job level. Since this workflow doesn't need to write to the repository or manage issues/pull requests, the minimum required is:

permissions:
  contents: read

This should be placed at the top workflow level (just under name: or above on:), so it applies to all jobs.
No further code changes are needed.


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

2 participants