Skip to content

Potential fix for code scanning alert no. 6: Workflow does not contain permissions#145

Closed
joto wants to merge 1 commit into
masterfrom
alert-autofix-6
Closed

Potential fix for code scanning alert no. 6: Workflow does not contain permissions#145
joto wants to merge 1 commit into
masterfrom
alert-autofix-6

Conversation

@joto
Copy link
Copy Markdown
Collaborator

@joto joto commented May 21, 2026

Potential fix for https://github.com/mapbox/protozero/security/code-scanning/6

Add an explicit permissions block at the workflow root in .github/workflows/clang-tidy.yml, directly under the on trigger (before jobs). For this workflow, the minimal required scope is contents: read, which is sufficient for checking out source and does not grant unnecessary write privileges. This preserves current functionality while enforcing least privilege and preventing future drift if repository/org defaults change.

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>
@joto joto closed this May 21, 2026
@joto joto deleted the alert-autofix-6 branch May 21, 2026 19:26
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.

1 participant