[llvm] [workflows] Split pr-code-format into two parts to make it more secure (PR #78216)

James Y Knight via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 2 13:08:09 PST 2024


================
@@ -0,0 +1,89 @@
+name: Comment on an issue
+
+on:
+  workflow_run:
+    workflows: ["Check code formatting"]
+    types:
+      - completed
+
+permissions:
+  contents: read
+
+jobs:
+  pr-comment:
+    runs-on: ubuntu-latest
+    permissions:
+      pull-requests: write
+    if: >
+      github.event.workflow_run.event == 'pull_request'
+    steps:
+      - name: 'Download artifact'
----------------
jyknight wrote:

I think i you use the newer [upload-artifacts](https://github.com/actions/upload-artifact) and [download-artifacts](https://github.com/actions/download-artifact) packages, then you don't need to deal with all the listing/downloading/unzip code -- it'll do it for you just based on a name and run_id.

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


More information about the llvm-commits mailing list