Skip to content

Potential fix for code scanning alert no. 4: Workflow does not contain permissions#42

Merged
n2p5 merged 1 commit into
mainfrom
alert-autofix-4
Jul 2, 2026
Merged

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

Conversation

@n2p5

@n2p5 n2p5 commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Potential fix for https://github.com/funcimp/func.lol/security/code-scanning/4

Add an explicit top-level permissions block in .github/workflows/ci.yml so all jobs inherit least-privilege token access without changing behavior.

Best fix here: add at workflow root (after name and before on) the minimal required permission:

  • contents: read

This is sufficient for actions/checkout and the shown build/test commands, and avoids granting 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>
@vercel

vercel Bot commented Jul 2, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
func-lol Ready Ready Preview, Comment Jul 2, 2026 4:43pm

Request Review

@n2p5
n2p5 marked this pull request as ready for review July 2, 2026 16:42
@n2p5
n2p5 merged commit b853834 into main Jul 2, 2026
10 checks passed
@n2p5
n2p5 deleted the alert-autofix-4 branch July 2, 2026 16:44
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