diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 44119ae..f9f7421 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -1,5 +1,8 @@ name: Lint Code Base +permissions: + contents: read + ############################# # Start the job on all push # ############################# @@ -31,7 +34,7 @@ jobs: # Checkout the code base # ########################## - name: Checkout Code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Full git history is needed to get a proper list of changed files within `super-linter` fetch-depth: 0 diff --git a/.github/workflows/publish_fluentvalidation.yml b/.github/workflows/publish_fluentvalidation.yml index aeba7ff..4b9e40f 100644 --- a/.github/workflows/publish_fluentvalidation.yml +++ b/.github/workflows/publish_fluentvalidation.yml @@ -20,12 +20,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # avoid shallow clone so nbgv can do its work. - name: Setup .NET SDK ${{ env.NET_VERSION }} - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: dotnet-version: ${{ env.NET_VERSION }} dotnet-quality: 'ga' diff --git a/.github/workflows/publish_openapi.yml b/.github/workflows/publish_openapi.yml index 5abb42f..af8f0fb 100644 --- a/.github/workflows/publish_openapi.yml +++ b/.github/workflows/publish_openapi.yml @@ -1,5 +1,10 @@ name: Publish OpenApi Helpers on NuGet +permissions: + contents: read + packages: write + actions: write + on: push: branches: [ master ] @@ -20,12 +25,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # avoid shallow clone so nbgv can do its work. - name: Setup .NET SDK ${{ env.NET_VERSION }} - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: dotnet-version: ${{ env.NET_VERSION }} dotnet-quality: 'ga' diff --git a/.github/workflows/publish_routing.yml b/.github/workflows/publish_routing.yml index a025626..fd43773 100644 --- a/.github/workflows/publish_routing.yml +++ b/.github/workflows/publish_routing.yml @@ -20,12 +20,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # avoid shallow clone so nbgv can do its work. - name: Setup .NET SDK ${{ env.NET_VERSION }} - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: dotnet-version: ${{ env.NET_VERSION }} dotnet-quality: 'ga' diff --git a/.github/workflows/publish_routing_analyzers.yml b/.github/workflows/publish_routing_analyzers.yml index c881fc3..98025b2 100644 --- a/.github/workflows/publish_routing_analyzers.yml +++ b/.github/workflows/publish_routing_analyzers.yml @@ -20,12 +20,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # avoid shallow clone so nbgv can do its work. - name: Setup .NET SDK ${{ env.NET_VERSION }} - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: dotnet-version: ${{ env.NET_VERSION }} dotnet-quality: 'ga' diff --git a/.github/workflows/publish_validation.yml b/.github/workflows/publish_validation.yml index 9e571f4..c6d9f9c 100644 --- a/.github/workflows/publish_validation.yml +++ b/.github/workflows/publish_validation.yml @@ -20,12 +20,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # avoid shallow clone so nbgv can do its work. - name: Setup .NET SDK ${{ env.NET_VERSION }} - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: dotnet-version: ${{ env.NET_VERSION }} dotnet-quality: 'ga' diff --git a/MinimalHelpers.sln b/MinimalHelpers.sln index 089fe2a..32765d2 100644 --- a/MinimalHelpers.sln +++ b/MinimalHelpers.sln @@ -1,6 +1,6 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# 17 +# Visual Studio Version 17 VisualStudioVersion = 17.0.31919.166 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MinimalSample", "samples\MinimalSample\MinimalSample.csproj", "{E2C81EC8-A32D-4241-9661-DE2A97E9798F}" @@ -10,6 +10,7 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{89B521CC-30D2-4BCD-A649-34B6098CC92F}" ProjectSection(SolutionItems) = preProject .editorconfig = .editorconfig + .github\copilot-instructions.md = .github\copilot-instructions.md src\Directory.Build.props = src\Directory.Build.props EndProjectSection EndProject diff --git a/samples/MinimalSample/MinimalSample.csproj b/samples/MinimalSample/MinimalSample.csproj index c639652..267998d 100644 --- a/samples/MinimalSample/MinimalSample.csproj +++ b/samples/MinimalSample/MinimalSample.csproj @@ -8,9 +8,9 @@ - - - + + + diff --git a/src/MinimalHelpers.OpenApi/MinimalHelpers.OpenApi.csproj b/src/MinimalHelpers.OpenApi/MinimalHelpers.OpenApi.csproj index cd8d7f6..a5952fe 100644 --- a/src/MinimalHelpers.OpenApi/MinimalHelpers.OpenApi.csproj +++ b/src/MinimalHelpers.OpenApi/MinimalHelpers.OpenApi.csproj @@ -30,11 +30,11 @@ - + - +