Skip to content

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

Merged
kojix2 merged 1 commit into
mainfrom
alert-autofix-1
Oct 24, 2026
Merged

kojix2 merged 1 commit into
mainfrom
alert-autofix-1

Conversation

@kojix2

@kojix2 kojix2 commented Oct 24, 2026

Copy link
Copy Markdown
Member

Potential fix for https://github.com/red-data-tools/YouPlot/security/code-scanning/1

Add an explicit permissions block in .github/workflows/ci.yml at the workflow root (top level), so it applies to all jobs unless overridden. For this workflow, the least-privilege baseline is contents: read, which supports actions/checkout and test execution while preventing unnecessary write scopes.

Best single change:

  • In .github/workflows/ci.yml, insert:
    • permissions:
    • contents: read
  • Place it near the top-level keys (e.g., after on: and before jobs:) to clearly scope all jobs.
  • No imports, methods, or additional definitions are needed.

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>
@kojix2
kojix2 marked this pull request as ready for review October 24, 2026 11:58
@kojix2
kojix2 merged commit 210e481 into main Oct 24, 2026
35 checks passed
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