[llvm] Add github workflow that checks if a private email address was used to contribute to the repo and warn in this case (PR #80514)

David Spickett via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 5 01:15:53 PST 2024


================
@@ -0,0 +1,40 @@
+name: "Check for private emails used in PRs"
+
+on: pull_request_target
+
+permissions:
+  contents: read
+
+jobs:
+  validate_email:
+    permissions:
+      pull-requests: write
+    runs-on: ubuntu-latest
+    if: github.repository == 'llvm/llvm-project'
+    steps:
+      - name: Fetch LLVM sources
+        uses: actions/checkout at v4
+        with:
+          ref: ${{ github.event.pull_request.head.sha }}
----------------
DavidSpickett wrote:

Is this getting the whole repo each time? I wonder if there are some "shallow checkout" options that would apply here.

Or we could get it from the PR event, maybe, but I guess you already looked for that and I don't want to derail the chosen solution.

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


More information about the llvm-commits mailing list