Skip to content

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

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/YouPlot2/security/code-scanning/1

Add an explicit permissions block to the build job in .github/workflows/build.yml.

Best fix here (without changing behavior):

  • Add permissions under jobs.build (same indentation level as runs-on/steps).
  • Set:
    • contents: write (needed for softprops/action-gh-release to create/update release assets on tags)
    • actions: read (sufficient for normal workflow action usage)

This keeps the current release-upload functionality working while constraining token scope more than implicit defaults.

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:42
@kojix2
kojix2 merged commit f058112 into main Oct 24, 2026
15 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