Skip to content

Update style, workflows, structure, and dependencies - #199

Merged
marcominerva merged 1 commit into
masterfrom
develop
Sep 9, 2026
Merged

marcominerva merged 1 commit into
masterfrom
develop

Conversation

@marcominerva

Copy link
Copy Markdown
Owner

.editorconfig: Add new C# style/formatting rules (implicit lambdas, unbound generics in nameof, static anonymous functions).
GitHub Actions: Switch publish workflow to NuGet OIDC login, removing static API key.
Solution: Refactor SimpleAuthentication.slnx to use lowercase folder names and group src projects under /src/.
Dependencies: Upgrade Nerdbank.GitVersioning to 3.10.94 in Directory.Build.props.
Code: Refactor PermissionAttribute to use a primary constructor and file-scoped namespace.
Packages: Update Microsoft.AspNetCore.Authentication.JwtBearer references in SimpleAuthentication.Abstractions.csproj to latest patch versions for .NET 8, 9, and 10.

.editorconfig: Add new C# style/formatting rules (implicit lambdas, unbound generics in nameof, static anonymous functions).
GitHub Actions: Switch publish workflow to NuGet OIDC login, removing static API key.
Solution: Refactor SimpleAuthentication.slnx to use lowercase folder names and group src projects under /src/.
Dependencies: Upgrade Nerdbank.GitVersioning to 3.10.94 in Directory.Build.props.
Code: Refactor PermissionAttribute to use a primary constructor and file-scoped namespace.
Packages: Update Microsoft.AspNetCore.Authentication.JwtBearer references in SimpleAuthentication.Abstractions.csproj to latest patch versions for .NET 8, 9, and 10.
Copilot AI lite review requested due to automatic review settings September 9, 2026 10:22
@marcominerva
marcominerva merged commit 58fd370 into master Sep 9, 2026
7 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

PermissionAttribute uses params on a class primary constructor, which is not supported and will fail compilation / break intended attribute usage.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR updates repository-wide style/workflow configuration and modernizes several project artifacts (solution structure, dependency versions, and a small C# refactor) to align with newer tooling and security practices.

Changes:

  • Updates formatting/style rules in .editorconfig and refactors PermissionAttribute.
  • Switches the NuGet publish workflow to use OIDC-based login instead of a long-lived API key secret.
  • Adjusts solution organization and bumps package/dependency versions (JwtBearer per TFM; Nerdbank.GitVersioning).
File summaries
File Description
src/SimpleAuthentication.Abstractions/SimpleAuthentication.Abstractions.csproj Updates JwtBearer package patch versions per target framework.
src/SimpleAuthentication.Abstractions/Permissions/PermissionAttribute.cs Refactors PermissionAttribute to a primary-constructor form (currently introduces a compile issue).
src/Directory.Build.props Bumps Nerdbank.GitVersioning version.
SimpleAuthentication.slnx Reorganizes solution folders (adds /src/ grouping and lowercases /samples/).
.github/workflows/publish_abstractions.yml Switches publishing to NuGet OIDC login and uses the short-lived key output for push.
.editorconfig Adds new C# style preferences (static anonymous functions, implicit lambdas, unbound generics in nameof).
Review details
  • Files reviewed: 6/6 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

public class PermissionAttribute(params string[] permissions) : AuthorizeAttribute(string.Join(",", permissions))
{
}
public class PermissionAttribute(params string[] permissions) : AuthorizeAttribute(string.Join(",", permissions)); No newline at end of file
Comment on lines 52 to +53
- name: Publish on NuGet
run: dotnet nuget push *.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
run: dotnet nuget push *.nupkg --api-key ${{steps.login.outputs.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json
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