🔥 3-day streak
GitHub Actions (GH-200)119 / 142
Question 119 of 142

A workflow triggered by pull_request builds a Docker image tagged with the source branch name. A security reviewer flags this step because a malicious contributor could craft a branch name to execute arbitrary commands on the runner: ```yaml - name: Build image run: docker build -t myapp:${{ github.head_ref }} . ``` Which change most effectively eliminates the script injection risk while keeping the branch name available to the step?

Reviewed for accuracy · Report an issueNext question