feat: script debugging from ci + sentry QoL - #8850
Conversation
|
Claude finished @NickKhalow's task in 1m 56s —— View job Claude Security ReviewScope:
Summary of changes (PR-visible facts)
Findings against the workflow checklistW.7a — Secret-holding actions pinned to a mutable ref (pre-existing, NOT introduced by this PR)
This was already present on W.7b — Other unpinned actions (pre-existing)Tag-pinned ( W.10 — Permissions blockNo top-level or per-job Injection-class observations on the new logicThese are not in the W.1–W.10 numbered set (which is LLM-focused) but are worth a quick read since the PR introduces label-driven shell logic. 1. Label name interpolation into a shell command — lines 351-352, 444 echo "${{ join(github.event.pull_request.labels.*.name, ' ') }}" | grep -qw 'enable-sentry' ...GitHub label names can contain spaces, quotes, backticks, and Mitigation (safer pattern, also used by the labels='${{ join(github.event.pull_request.labels.*.name, ' ') }}'
echo "$labels" | grep -qw 'enable-sentry' && sentry_enabled=true || sentry_enabled=falseSingle quotes around the GitHub expression, then quoted shell variable expansion. Severity: LOW — this pattern is identical to several other steps already on 2. echo "DESTINATION_PATH=${RESOLVED_DESTINATION_PATH}" >> $GITHUB_ENV
3. New Other observations (non-security)
VerdictThe PR is a small, additive workflow change with no new dependencies, no new actions, no secret-flow changes, and no LLM/prompt surface. The only label-shell-interpolation pattern it adds mirrors patterns already present on Pre-existing items (
|
What does this PR change?
Adds Script Debugging support to the Unity Cloud CI build workflow, along with several quality-of-life improvements for CI artifact handling and Sentry configuration.
Script Debugging from CI
script_debuggingboolean input to bothworkflow_dispatchandworkflow_calltriggers.script-debuggingPR label), the build includesAllowDebuggingin Unity build options and forces aDevelopmentbuild — required by Unity forAllowDebuggingto take effect.Sentry label-based activation for PRs
enable-sentryPR label, not just via workflow inputs.S3 upload path & URL visibility
DESTINATION_PATHcomputation into its own step ("Compute S3 destination path"), making the env var available to subsequent steps.::notice::annotation and writes it to the GitHub Step Summary for easy discovery.Test Instructions
Steps (workflow_dispatch):
build-unitycloudmanually withscript_debugging: true.AllowDebuggingandDevelopment.Steps (PR label):
script-debugginglabel to a test PR.AllowDebugging+Development.enable-sentrylabel and verify Sentry is activated withenvironment=development.Expected result:
AllowDebugging.Quality Checklist