Skip to content

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

Closed
mdeous wants to merge 2 commits into
masterfrom
alert-autofix-1
Closed

Potential fix for code scanning alert no. 1: Workflow does not contain permissions#3
mdeous wants to merge 2 commits into
masterfrom
alert-autofix-1

Conversation

@mdeous

@mdeous mdeous commented Apr 12, 2026

Copy link
Copy Markdown
Owner

Potential fix for https://github.com/mdeous/dots/security/code-scanning/1

Add an explicit workflow-level permissions block in .github/workflows/ci.yml so all jobs inherit least-privilege token access.
Best minimal fix (without changing functionality): set:

  • contents: read

This is sufficient for checkout and typical read-only CI operations. Place it at the workflow root, right after on: (or before jobs:), so both quality and test jobs inherit it automatically. No imports, methods, or additional definitions are needed.

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>
@mdeous
mdeous marked this pull request as ready for review April 12, 2026 10:36
@mdeous
mdeous enabled auto-merge April 12, 2026 10:36
@mdeous
mdeous disabled auto-merge April 12, 2026 10:37
@mdeous mdeous closed this Apr 12, 2026
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