Skip to content

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

Draft
Simonc44 wants to merge 1 commit into
mainfrom
alert-autofix-22
Draft

Potential fix for code scanning alert no. 22: Workflow does not contain permissions#80
Simonc44 wants to merge 1 commit into
mainfrom
alert-autofix-22

Conversation

@Simonc44

@Simonc44 Simonc44 commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Potential fix for https://github.com/Simonc44/mandat/security/code-scanning/22

Add an explicit permissions block to .github/workflows/ci.yml at the workflow root so it applies to all jobs (currently one job). For this CI workflow, the minimal required scope is contents: read, which is sufficient for actions/checkout and running local lint/typecheck/format commands. This preserves existing behavior while enforcing least privilege for GITHUB_TOKEN.

Change location:

  • File: .github/workflows/ci.yml
  • Insert permissions: after the on: trigger section and before jobs:.

No imports, methods, or dependencies 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>
@vercel

vercel Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mandat Ready Ready Preview, Comment Jul 6, 2026 9:24pm

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