Skip to content

Commit 33c8a72

Browse files
committed
Update CLA action
1 parent 418a107 commit 33c8a72

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

.github/workflows/cla.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,14 @@ jobs:
1515
RequireCLA:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- name: "Generate random delimiter for heredocs"
19-
id: random_delimiter
20-
run: |
21-
echo -n "value=" >> $GITHUB_OUTPUT
22-
tr -dc A-Za-z0-9 </dev/urandom | head -c 60 >> $GITHUB_OUTPUT
23-
echo >> $GITHUB_OUTPUT
24-
2518
- name: "Strip whitespace from comment body"
2619
id: strip_whitespace
20+
env:
21+
COMMENT_BODY: ${{ github.event.comment.body }}
2722
run: |
28-
echo "body<<${{ steps.random_delimiter.outputs.value }}" >> $GITHUB_OUTPUT
29-
cat << "${{ steps.random_delimiter.outputs.value }}" | sed '/^[[:space:]]*$/d; s/^[[:space:]]*//; s/[[:space:]]*$//' >> $GITHUB_OUTPUT
30-
${{ github.event.comment.body }}
31-
${{ steps.random_delimiter.outputs.value }}
32-
echo "${{ steps.random_delimiter.outputs.value }}" >> $GITHUB_OUTPUT
23+
printf 'body=%s\n' "$COMMENT_BODY" |
24+
sed '/^[[:space:]]*$/d; s/^[[:space:]]*//; s/[[:space:]]*$//' |
25+
head -n 1 >> $GITHUB_OUTPUT
3326
3427
- name: "Generate access token"
3528
id: access-token
@@ -56,7 +49,7 @@ jobs:
5649
before we accept your contribution. You can sign the CLA by posting
5750
a comment on this PR saying:
5851
59-
allowlist: jmcphers, DavisVaughan, dependabot[bot], dfalbel, isabelizimm, jonvanausdeln, lionel-, nstrayer, petetronic, positron-bot[bot], seeM, sharon-wang, softwarenerd, timtmok, wesm, posit-jenkins-enterprise[bot], github-actions[bot], juliasilge, midleman, dhruvisompura, timtmok, jonvanausdeln, austin3dickey, samclark2015, isabelizimm, georgestagg, testlabauto,
52+
allowlist: jmcphers, DavisVaughan, dependabot[bot], dfalbel, isabelizimm, jonvanausdeln, lionel-, nstrayer, petetronic, positron-bot[bot], seeM, sharon-wang, softwarenerd, timtmok, wesm, posit-jenkins-enterprise[bot], github-actions[bot], juliasilge, midleman, dhruvisompura, timtmok, jonvanausdeln, austin3dickey, samclark2015, isabelizimm, georgestagg, testlabauto,
6053

6154
# the followings are the optional inputs - If the optional inputs are not given, then default values will be taken
6255
#remote-organization-name: enter the remote organization name where the signatures should be stored (Default is storing the signatures in the same repository)

0 commit comments

Comments
 (0)