[PATCH] D117745: issue-subscriber: Fix handling of labels with spaces

Tom Stellard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 21 04:05:10 PST 2022


This revision was automatically updated to reflect the committed changes.
tstellar marked an inline comment as done.
Closed by commit rG90faaf811f38: issue-subscriber: Fix handling of labels with spaces (authored by tstellar).

Changed prior to commit:
  https://reviews.llvm.org/D117745?vs=401757&id=410267#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D117745/new/

https://reviews.llvm.org/D117745

Files:
  .github/workflows/issue-subscriber.yml


Index: .github/workflows/issue-subscriber.yml
===================================================================
--- .github/workflows/issue-subscriber.yml
+++ .github/workflows/issue-subscriber.yml
@@ -18,9 +18,12 @@
         pip install -r requirements.txt
 
     - name: Update watchers
+      # https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
+      env:
+        LABEL_NAME: ${{ github.event.label.name }}
       run: |
         ./github-automation.py \
-          --token ${{ secrets.ISSUE_SUBSCRIBER_TOKEN }} \
+          --token '${{ secrets.ISSUE_SUBSCRIBER_TOKEN }}' \
           issue-subscriber \
-          --issue-number ${{ github.event.issue.number }} \
-          --label-name ${{ github.event.label.name }}
+          --issue-number '${{ github.event.issue.number }}' \
+          --label-name "$LABEL_NAME"


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117745.410267.patch
Type: text/x-patch
Size: 911 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220221/e1d5a3c3/attachment.bin>


More information about the llvm-commits mailing list