diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index a6dbde40..2b10359b 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -3,25 +3,25 @@ "isRoot": true, "tools": { "csharpier": { - "version": "1.2.5", + "version": "1.2.6", "commands": [ "csharpier" ], "rollForward": false }, "husky": { - "version": "0.8.0", + "version": "0.9.1", "commands": [ "husky" ], "rollForward": false }, "dotnet-outdated-tool": { - "version": "4.6.9", + "version": "4.7.1", "commands": [ "dotnet-outdated" ], "rollForward": false } } -} +} \ No newline at end of file diff --git a/.github/workflows/run-codegen-pull-request-task.yml b/.github/workflows/run-codegen-pull-request-task.yml index 09ba51eb..963ceaea 100644 --- a/.github/workflows/run-codegen-pull-request-task.yml +++ b/.github/workflows/run-codegen-pull-request-task.yml @@ -2,6 +2,9 @@ name: Run codegen and pull request task on: workflow_call: + secrets: + WORKFLOW_PAT: + required: true jobs: @@ -34,6 +37,7 @@ jobs: - name: Create pull request step uses: peter-evans/create-pull-request@v8 with: + token: ${{ secrets.WORKFLOW_PAT }} branch: codegen title: 'Update codegen files' body: 'This PR updates the codegen files.' diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 059f784a..2846d7f9 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -93,5 +93,21 @@ "clear": false } }, + { + "label": ".Net Outdated Upgrade", + "type": "process", + "command": "dotnet", + "args": [ + "outdated", + "--upgrade:Prompt" + ], + "problemMatcher": [ + "$msCompile" + ], + "presentation": { + "showReuseMessage": false, + "clear": false + } + } ] } diff --git a/CodeGen/CodeGen.csproj b/CodeGen/CodeGen.csproj index 653a81e5..8ff838f4 100644 --- a/CodeGen/CodeGen.csproj +++ b/CodeGen/CodeGen.csproj @@ -17,10 +17,10 @@ true - + - - + + diff --git a/Console/Console.csproj b/Console/Console.csproj index 588e8760..1e00bf4e 100644 --- a/Console/Console.csproj +++ b/Console/Console.csproj @@ -17,13 +17,13 @@ true - + - - + + diff --git a/Library/Library.csproj b/Library/Library.csproj index 3f5b5342..5623d4bf 100644 --- a/Library/Library.csproj +++ b/Library/Library.csproj @@ -33,10 +33,10 @@ true - + diff --git a/README.md b/README.md index cc76bf25..db467651 100644 --- a/README.md +++ b/README.md @@ -382,6 +382,15 @@ Licensed under the [MIT License][license-link]\ - Save the PAT as `DOCKER_HUB_ACCESS_TOKEN` and `DOCKER_HUB_USERNAME` in: - GitHub project security Settings / Secrets / Actions. - GitHub project security Settings / Secrets / Dependabot. +- Create a [GitHub Personal Access Token](https://github.com/settings/personal-access-tokens). + - Save the PAT as `WORKFLOW_PAT`. + - Permissions: + - Contents: Read & write (to push the codegen commit) + - Pull requests: Read & write — to create the PR + - Workflows: Read & write — this is the key permission that allows the token to trigger pull_request events in other workflows + - Metadata: Read-only (auto-required) + - Save the PAT as `WORKFLOW_PAT` in: + - GitHub project security Settings / Secrets / Actions. **GitHub project settings**: diff --git a/Tests/Tests.csproj b/Tests/Tests.csproj index e976bea3..36ada6b2 100644 --- a/Tests/Tests.csproj +++ b/Tests/Tests.csproj @@ -9,8 +9,8 @@ net10.0 - - + + all