Skip to content

Conversation

@mmanela
Copy link
Owner

@mmanela mmanela commented Nov 19, 2025

Potential fix for https://github.com/mmanela/diffplex/security/code-scanning/1

To fix this problem, we should add an explicit permissions block to the workflow, either at the workflow root (recommended for a single-job workflow as shown) or for the specific job. Based on the workflow steps, only code checkout and .NET restore/build/test tasks are performed, none of which require write access to repository contents or other resources. Therefore, we will add permissions: contents: read as the minimal starting point near the top of .github/workflows/dotnet.yml, just below the workflow name.

  • Change: Add a block after line 1 (name: .NET) with permissions:\n contents: read.
  • No changes to existing steps or imports are needed.
  • No further dependencies or changes are required.

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>
@mmanela mmanela marked this pull request as ready for review November 19, 2025 15:41
@mmanela mmanela merged commit f500e73 into master Nov 19, 2025
6 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.

2 participants