[llvm] [CI] Make email check workflow fail when author's email is private in Github UI (PR #148694)

Udit Kumar Agarwal via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 16 09:06:58 PDT 2025


================
@@ -20,14 +20,30 @@ jobs:
 
       - name: Extract author email
         id: author
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
----------------
uditagarwal97 wrote:

I tried removing it but here's an error I got: https://github.com/llvm/llvm-project/actions/runs/16279223833/job/45965264297#step:3:22
```
gh: To use GitHub CLI in a GitHub Actions workflow, set the GH_TOKEN environment variable. Example:
  env:
    GH_TOKEN: ${{ github.token }}
``` 
I think GH_TOKEN env. variable is required for authenticating the GraphQL query and AFAIK, permission of `GITHUB_TOKEN` is same as `secrets.GITHUB_TOKEN`, as I didn't explicitly changed the permission of the workflow.

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


More information about the llvm-commits mailing list