Skip to content

Potential fix for code scanning alert no. 1: Workflow does not contain permissions#22

Merged
danielbentes merged 1 commit into
mainfrom
alert-autofix-1
May 14, 2026
Merged

Potential fix for code scanning alert no. 1: Workflow does not contain permissions#22
danielbentes merged 1 commit into
mainfrom
alert-autofix-1

Conversation

@danielbentes
Copy link
Copy Markdown
Collaborator

Potential fix for https://github.com/synaptiai/uim-protocol/security/code-scanning/1

Add an explicit permissions block at the workflow root in .github/workflows/ci.yml, directly after the on: triggers (or before jobs:), so it applies to both lint and test jobs.
The least-privilege baseline for this workflow is:

  • contents: read

This preserves existing behavior (checkout and reads) while preventing unintended write scopes from defaults. No imports, methods, or dependencies are needed since this is YAML configuration only.

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>
@danielbentes danielbentes marked this pull request as ready for review May 14, 2026 06:15
@danielbentes danielbentes merged commit f0a784a into main May 14, 2026
6 checks passed
@danielbentes danielbentes deleted the alert-autofix-1 branch May 14, 2026 06:16
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