Skip to content

Add minimal permissions to dotnet workflow for improved security #2940

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JeetKarena
Copy link

This PR updates the Dotnet workflow to include permissions: contents: read, ensuring the workflow follows the principle of least privilege and improves security.

Key changes:

  • Added permissions: contents: read to the workflow file.

No functional changes to the build or test steps.


Checklist

  • Workflow file is in the correct directory and uses lower-kebab-case.
  • Workflow name is "dotnet".
  • Step names use sentence case.
  • Workflow uses $default-branch for triggers (if applicable).
  • Includes permissions: contents: read.
  • Only official GitHub or ecosystem actions used.
  • Comments are present and clear.

Add minimal permissions to dotnet workflow for improved security
@JeetKarena JeetKarena requested review from a team as code owners June 27, 2025 15:22
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