Skip to content

fix: potential fix for code scanning alert no. 9: Workflow does not contain permissions#16

Merged
maw629 merged 1 commit into
trunkfrom
fix/alert-autofix-9
Jul 14, 2026
Merged

fix: potential fix for code scanning alert no. 9: Workflow does not contain permissions#16
maw629 merged 1 commit into
trunkfrom
fix/alert-autofix-9

Conversation

@maw629

@maw629 maw629 commented Jul 14, 2026

Copy link
Copy Markdown

Potential fix for https://github.com/pkg-nec/http-server/security/code-scanning/9

Add an explicit top-level permissions block in .github/workflows/node.js.yml so all jobs inherit least-privilege token access unless overridden.
For this workflow, the best non-functional-change fix is:

  • Add at workflow root (after on: block, before jobs:):
    • permissions:
    • contents: read

This is sufficient for actions/checkout and test execution, and does not expand privileges.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

@github-actions

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@maw629
maw629 marked this pull request as ready for review July 14, 2026 13:18
…ntain permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@maw629
maw629 force-pushed the fix/alert-autofix-9 branch from 01817d3 to 200c250 Compare July 14, 2026 13:20
@maw629 maw629 changed the title Potential fix for code scanning alert no. 9: Workflow does not contain permissions fix: potential fix for code scanning alert no. 9: Workflow does not contain permissions Jul 14, 2026
@maw629
maw629 merged commit 4cfbff3 into trunk Jul 14, 2026
13 checks passed
@maw629
maw629 deleted the fix/alert-autofix-9 branch July 14, 2026 13:23
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