@@ -57,13 +57,13 @@ jobs:
5757
5858 - name : Determine pushed commits
5959 id : range
60+ env :
61+ # Use GitHub-provided SHAs to build the range for this push
62+ BEFORE : ${{ github.event.before }}
63+ AFTER : ${{ github.sha }}
6064 run : |
6165 set -euo pipefail
6266
63- # Use GitHub-provided SHAs to build the range for this push
64- BEFORE="${{ github.event.before }}"
65- AFTER="${{ github.sha }}"
66-
6767 if [ "$BEFORE" = "0000000000000000000000000000000000000000" ]
6868 then
6969 # New branch or force push without previous SHA
7373 fi
7474
7575 - name : Check for Signed-off-by
76+ env :
77+ GH_ACTOR : ${{ github.actor }}
78+ GH_NAME : ${{ github.event.pusher.name }}
7679 run : |
7780 set -euo pipefail
7881 missing=""
@@ -101,8 +104,8 @@ jobs:
101104
102105 echo "Committer name: $committer_name"
103106 echo "Committer email: $committer_email"
104- echo "github.actor: ${{ github.actor }} "
105- echo "github.event.pusher.name: ${{ github.event.pusher.name }} "
107+ echo "github.actor: $GH_ACTOR "
108+ echo "github.event.pusher.name: $GH_NAME "
106109 fi
107110 done < shas.txt
108111
@@ -145,6 +148,9 @@ jobs:
145148 | jq -r '.[].sha' > shas.txt
146149
147150 - name : Check for Signed-off-by
151+ env :
152+ GH_ACTOR : ${{ github.actor }}
153+ GH_NAME : ${{ github.event.pull_request.user.login}}
148154 run : |
149155 set -euo pipefail
150156 missing=""
@@ -171,10 +177,10 @@ jobs:
171177 echo "Commit $sha missing Signed-off-by"
172178 missing="true"
173179
174- echo "Committer name: $committer_name"
175- echo "Committer email: $committer_email"
176- echo "github.actor: ${{ github.actor }} "
177- echo "github.event.pusher.name : ${{ github.event.pusher.name }} "
180+ echo "Committer name: $committer_name"
181+ echo "Committer email: $committer_email"
182+ echo "github.actor: $GH_ACTOR "
183+ echo "github.event.pull_request.user.login : $GH_NAME "
178184 fi
179185 done < shas.txt
180186
0 commit comments