actions-marketplace-validations/Update .NET SDK
Attempts to update the version of the .NET SDK used by the repository's global.json file.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Feb 9, 2026
- License
- Apache 2.0
Pinned Snippet
uses: actions-marketplace-validations/martincostello_update-dotnet-sdk@3bf559cdc4dc8b6c6959c5466bd2c96ba7b892fc # no releases — HEAD as of 2026-07-13tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| repo-token | The GitHub access token to use to create a Pull Request for any SDK update to the repository. | yes | — |
| branch-name | The optional Git branch name to use. | no | "" |
| channel | The optional .NET release channel to download the SDK for (2.1, 3.1, 5.0, etc.). | no | "" |
| close-superseded | If true, any existing pull requests superseded by any pull request opened by the action are closed. | no | true |
| commit-message | The optional Git commit message to use. | no | "" |
| commit-message-prefix | The optional Git commit message prefix to use if commit-message is not specified. | no | "" |
| generate-step-summary | If true, will output a summary of any .NET SDK update to $GITHUB_STEP_SUMMARY. | no | true |
| global-json-file | The optional path to the global.json file to update. | no | ./global.json |
| labels | The optional comma-separated label(s) to apply to Pull Requests generated by the action. | no | "" |
| prerelease-label | The optional pre-release label to restrict SDK updates to if a quality is specified. | no | "" |
| repo | The optional GitHub repository to generate the pull request against. | no | ${{ github.repository }} |
| security-only | If true, .NET SDK updates which do not contain security fixes are ignored. | no | false |
| quality | The optional value to specify using the latest build of the specified quality in the channel. | no | "" |
| user-email | The optional email address to use for the Git commit. | no | github-actions[bot]@users.noreply.github.com |
| user-name | The optional user name to use for the Git commit. | no | github-actions[bot] |
| dry-run | If true, the action will not push changes to GitHub. | no | false |
Outputs
| name | description |
|---|---|
| aspnetcore-version | The version of the ASP.NET Core runtime associated with the updated .NET SDK. |
| branch-name | The name of the Git branch associated with the Pull Request created by the action if the .NET SDK is updated. |
| pull-request-number | The number of the Pull Request created by the action if the .NET SDK is updated. |
| pull-request-html-url | The HTML URL of the Pull Request created by the action if the .NET SDK is updated. |
| pull-requests-closed | A JSON array of the numbers of any pull requests that were closed as superseded. |
| sdk-updated | Whether the .NET SDK was updated by the action. |
| sdk-version | The latest version of the .NET SDK for the specified channel when the action completed. |
| runtime-version | The version of the .NET runtime associated with the updated .NET SDK. |
| security | Whether any .NET SDK update includes security fixes. |
| windows-desktop-version | The version of the Windows Desktop runtime associated with the updated .NET SDK. |