Skip to content

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

Merged
pedrobritx merged 1 commit into
mainfrom
alert-autofix-1
May 28, 2026
Merged

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

Conversation

@pedrobritx

Copy link
Copy Markdown
Owner

Potential fix for https://github.com/pedrobritx/NotUX/security/code-scanning/1

Add an explicit top-level permissions block in .github/workflows/ci.yml so all jobs inherit least-privilege token scopes.
Best single fix here (without changing behavior) is:

  • Add at workflow root (after on: block is a clear place):
    • permissions:
    • contents: read

This is sufficient for actions/checkout and for the shown build/typecheck steps, and does not grant unnecessary write scopes.

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>
@pedrobritx
pedrobritx marked this pull request as ready for review May 28, 2026 17:22
@pedrobritx
pedrobritx merged commit 89a6dcf into main May 28, 2026
4 checks passed
@pedrobritx
pedrobritx deleted the alert-autofix-1 branch May 28, 2026 17:22
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