[llvm] [Github] Add workflow to test the issue write workflow (PR #170209)

via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 1 13:50:34 PST 2025


================
@@ -0,0 +1,22 @@
+name: Test Issue Write Workflow
+
+on:
+  pull_request:
+    paths:
+      - '.github/workflows/issue-write-test.yaml'
+
+jobs:
+  test-issue-write:
+    name: "Test Issue Write"
+    runs-on: ubuntu-24.04
+    if: github.repository == 'llvm/llvm-project'
+    steps:
+      - name: Write Comment
+        run: |
+          echo '[{"body": "This is a comment for testing the issue write workflow"}]' > comments
+      - name: Upload Comment
+        uses: actions/upload-artifact at 330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
+        with:
+          name: workflow-args
+          path: |
+            comments
----------------
github-advanced-security[bot] wrote:

## Workflow does not contain permissions

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {{}}

[Show more details](https://github.com/llvm/llvm-project/security/code-scanning/1530)

https://github.com/llvm/llvm-project/pull/170209


More information about the llvm-commits mailing list