Skip to content

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

Merged
manusoft merged 1 commit into
masterfrom
alert-autofix-1
Jul 31, 2026
Merged

Potential fix for code scanning alert no. 1: Workflow does not contain permissions#82
manusoft merged 1 commit into
masterfrom
alert-autofix-1

Conversation

@manusoft

Copy link
Copy Markdown
Owner

Potential fix for https://github.com/manusoft/Ytdlp.NET/security/code-scanning/1

Add an explicit permissions block to .github/workflows/ci-pr.yml at the workflow root (recommended here since there is one job and all steps are read-only). The minimal required permission for this workflow is:

  • contents: read

This preserves existing behavior (checkout + restore/build/test) while preventing unintended write scopes if defaults change.

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>
@manusoft
manusoft marked this pull request as ready for review July 31, 2026 21:45
@manusoft
manusoft merged commit 21fa5bb into master Jul 31, 2026
4 checks passed
@manusoft
manusoft deleted the alert-autofix-1 branch July 31, 2026 21:47
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