Skip to content
This repository was archived by the owner on May 29, 2026. It is now read-only.

Commit c67de6d

Browse files
Fix shell injection vulnerability in release workflow
Move github.ref_name from direct interpolation to environment variable to prevent potential code injection attacks. This addresses the security finding where untrusted GitHub context data could be used to inject malicious code into the runner. Fixes: https://linear.app/getsentry/issue/VULN-1591 Fixes: https://linear.app/getsentry/issue/CCMRG-2208 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent f7cb28c commit c67de6d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/release-codecov-cli.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@ jobs:
4747
- name: Publish a message to a Pub/Sub topic
4848
env:
4949
CLOUDSDK_CORE_PROJECT: ${{ secrets.GCLOUD_UPLOADER_PROJECT_ID }}
50+
REF_NAME: ${{ github.ref_name }}
5051
run: |
51-
gcloud pubsub topics publish ${{ secrets.GCLOUD_UPLOADER_PUBSUB_TOPIC }} --message '{"release":"'"${{ github.ref_name }}"'", "latest":true}'
52+
gcloud pubsub topics publish ${{ secrets.GCLOUD_UPLOADER_PUBSUB_TOPIC }} --message '{"release":"'"$REF_NAME"'", "latest":true}'

0 commit comments

Comments
 (0)