Repository navigation
ci(claude): allow dotnet build/test in Claude's GitHub Actions job - #249
Merged
Merged
Conversation
Without a .NET setup step and an --allowedTools grant, dotnet restore/build/test require an interactive approval that has no one to grant it in an unattended workflow run, so Claude's job could never build or test the repo (see #246). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01P56zPzfPgPWbq6YajhAUUY Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com>
DeepDiver1975
force-pushed
the
ci/claude-github-action
branch
from
September 6, 2026 22:00
b37dee6 to
8190595
Compare
This was referenced Sep 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Root cause of the two blocked checkboxes in #246's Claude run ("Build & run tests" and "Screenshots"):
claude.ymlnever installs the .NET SDK on the runner and never grants Claude's Bash tool permission to rundotnet. Any Bash command not on the allow-list requires interactive approval, and there's no one to approve it in an unattended CI job — sodotnet build/dotnet test(and evendotnet --version) were permanently blocked rather than merely slow.Setup .NETstep (sameactions/setup-dotnetpin +10.0.xversion already used inci.yml/release.yml)claude_args: --allowedTools "Bash(dotnet restore:*),Bash(dotnet build:*),Bash(dotnet test:*)"so Claude can restore/build/test without a human approval gateTest plan
python3 -c "import yaml; yaml.safe_load(...)"— workflow YAML parses@claudeon an issue/PR and confirm it can now rundotnet build/dotnet testunattended🤖 Generated with Claude Code
https://claude.ai/code/session_01P56zPzfPgPWbq6YajhAUUY