Skip to content

Potential fix for code scanning alert no. 7: Workflow does not contain permissions#35

Merged
ElVit merged 1 commit into
mainfrom
alert-autofix-7
Apr 17, 2026
Merged

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

Conversation

@ElVit

@ElVit ElVit commented Apr 17, 2026

Copy link
Copy Markdown
Owner

Potential fix for https://github.com/ElVit/esphome_components/security/code-scanning/7

Add an explicit top-level permissions block in .github/workflows/test_panasonic_heatpump.yml so all jobs inherit least-privilege token access by default.

Best single fix (without changing functionality):

  • Insert at workflow root (after name: and before on:):
    • permissions:
    • contents: read

This is sufficient for actions/checkout@v4 and typical read-only CI tasks. No additional imports, methods, or dependencies are needed since this is YAML config only.

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>
@ElVit ElVit marked this pull request as ready for review April 17, 2026 17:35
@ElVit ElVit merged commit 0bcb3e0 into main Apr 17, 2026
13 checks passed
@ElVit ElVit deleted the alert-autofix-7 branch April 17, 2026 17:35
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