summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorDaniel Watkins <oddbloke@ubuntu.com>2020-03-10 23:11:42 -0400
committerGitHub <noreply@github.com>2020-03-10 21:11:42 -0600
commita4d64e21f376be42b78d4a45d804f72dbba30fb0 (patch)
tree65790d28bf2895a9c6e00ad869adb073cd5c3a4e /.github
parent9b2e42c5cdf458de1cd7c08e554511ea04873d55 (diff)
downloadvyos-cloud-init-a4d64e21f376be42b78d4a45d804f72dbba30fb0.tar.gz
vyos-cloud-init-a4d64e21f376be42b78d4a45d804f72dbba30fb0.zip
workflows/cla.yml: use correct username for CLA check (#243)
Instead of using the username that triggered the action (which, in the case of a committer merging master into a PR branch will be the committer), always use the username of the submitter of the pull request.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/cla.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml
index 757e8ff1..389eccb8 100644
--- a/.github/workflows/cla.yml
+++ b/.github/workflows/cla.yml
@@ -8,10 +8,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- - name: Check CLA signing status for ${{ github.actor}}
+ - name: Check CLA signing status for ${{ github.event.pull_request.user.login }}
run: |
cat > unsigned-cla.txt <<EOF
- Hello ${{ github.actor }},
+ Hello ${{ github.event.pull_request.user.login }},
Thank you for your contribution to cloud-init.
@@ -24,6 +24,6 @@ jobs:
Thanks,
Your friendly cloud-init upstream
EOF
- grep -q ': \"${{ github.actor }}\"' ./tools/.lp-to-git-user && \
- echo "Thanks ${{ github.actor }} for signing cloud-init's CLA" || \
+ grep -q ': \"${{ github.event.pull_request.user.login }}\"' ./tools/.lp-to-git-user && \
+ echo "Thanks ${{ github.event.pull_request.user.login }} for signing cloud-init's CLA" || \
(cat unsigned-cla.txt && exit 1)