Skip to content

Bump actions/setup-dotnet from 5 to 6#16

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/github_actions/actions/setup-dotnet-6
Open

Bump actions/setup-dotnet from 5 to 6#16
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/github_actions/actions/setup-dotnet-6

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 16, 2026

Copy link
Copy Markdown
Contributor

Bumps actions/setup-dotnet from 5 to 6.

Release notes

Sourced from actions/setup-dotnet's releases.

v6.0.0

What's Changed

New Contributors

Full Changelog: actions/setup-dotnet@v5...v6.0.0

v5.4.0

What's Changed

Enhancements

Documentation

Bug Fixes

Dependency Updates

New Contributors

Full Changelog: actions/setup-dotnet@v5...v5.4.0

v5.3.0

What's Changed

Enhancements

Dependency Updates

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Summary by CodeRabbit

  • Chores
    • Updated the automated build, code analysis, and release processes to use the latest supported .NET setup tooling.
    • No user-facing functionality or behavior changes.

Bumps [actions/setup-dotnet](https://github.com/actions/setup-dotnet) from 5 to 6.
- [Release notes](https://github.com/actions/setup-dotnet/releases)
- [Commits](actions/setup-dotnet@v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-dotnet
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code labels Jul 16, 2026
@coderabbitai

coderabbitai Bot commented Jul 16, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The CI, CodeQL, and release workflows update actions/setup-dotnet from v5 to v6 without changing other workflow steps or commands.

Changes

.NET setup action upgrade

Layer / File(s) Summary
Update workflow setup actions
.github/workflows/ci.yml, .github/workflows/codeql.yml, .github/workflows/release.yml
The three workflows now use actions/setup-dotnet@v6 instead of v5.

Estimated code review effort: 1 (Trivial) | ~3 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: upgrading actions/setup-dotnet from v5 to v6 across workflows.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/ci.yml:
- Line 22: Replace the mutable actions/setup-dotnet@v6 reference with the
approved full commit SHA in .github/workflows/ci.yml (line 22),
.github/workflows/codeql.yml (line 23), and .github/workflows/release.yml (line
22), preserving the existing setup-dotnet configuration in each workflow.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 7b02095e-6a1c-4a29-bdfb-1ee6a4ba8526

📥 Commits

Reviewing files that changed from the base of the PR and between cd5de44 and 103f96a.

📒 Files selected for processing (3)
  • .github/workflows/ci.yml
  • .github/workflows/codeql.yml
  • .github/workflows/release.yml

Comment thread .github/workflows/ci.yml

- name: Setup .NET
uses: actions/setup-dotnet@v5
uses: actions/setup-dotnet@v6

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '--- workflow refs ---\n'
for f in .github/workflows/ci.yml .github/workflows/codeql.yml .github/workflows/release.yml; do
  echo "FILE: $f"
  nl -ba "$f" | sed -n '1,120p'
  echo
done

printf '--- pinning policy / references ---\n'
rg -n --hidden -S "unpinned-uses|pin|actions/setup-dotnet|uses: .*@" .github README.md docs . || true

Repository: testingbot/testingbot-dotnet

Length of output: 257


🏁 Script executed:

#!/bin/bash
set -euo pipefail

python3 - <<'PY'
import os, re, json, pathlib
for path in [".github/workflows/ci.yml", ".github/workflows/codeql.yml", ".github/workflows/release.yml"]:
    print(path)
    text = pathlib.Path(path).read_text()
    for m in re.finditer(r'uses:\s*([^\s]+)', text):
        print(" ", m.group(1))
    print()
PY

Repository: testingbot/testingbot-dotnet

Length of output: 537


Pin actions/setup-dotnet to a commit SHA in all three workflows.

.github/workflows/ci.yml, .github/workflows/codeql.yml, and .github/workflows/release.yml still reference the mutable actions/setup-dotnet@v6 tag. Replace each with a full commit SHA to match the repo’s action-pinning policy.

🧰 Tools
🪛 zizmor (1.26.1)

[error] 22-22: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)

(unpinned-uses)

📍 Affects 3 files
  • .github/workflows/ci.yml#L22-L22 (this comment)
  • .github/workflows/codeql.yml#L23-L23
  • .github/workflows/release.yml#L22-L22
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/ci.yml at line 22, Replace the mutable
actions/setup-dotnet@v6 reference with the approved full commit SHA in
.github/workflows/ci.yml (line 22), .github/workflows/codeql.yml (line 23), and
.github/workflows/release.yml (line 22), preserving the existing setup-dotnet
configuration in each workflow.

Source: Linters/SAST tools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants