2929 issues : write # required to post a comment on the issue/PR
3030 pull-requests : write # required to post a comment on the issue/PR if it's a PR
3131 if : >
32- !contains(fromJSON('["aeworxet","thulieblack"]'), github.actor ) &&
32+ !contains(fromJSON('["aeworxet","thulieblack"]'), github.event.comment.user.login ) &&
3333 (
3434 startsWith(github.event.comment.body, '/bounty' )
3535 )
3838
3939 steps :
4040 - name : ❌ @${{github.actor}} made an unauthorized attempt to use a Bounty Program's command
41- uses : actions/github-script@v7
41+ uses : actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
4242 env :
4343 ACTOR : ${{ github.actor }}
4444 with :
@@ -61,15 +61,15 @@ jobs:
6161 issues : write # required to read/create labels and add labels on the issue/PR
6262 pull-requests : write # required to read/create labels and add labels on the issue/PR
6363 if : >
64- contains(fromJSON('["aeworxet","thulieblack"]'), github.actor ) &&
64+ contains(fromJSON('["aeworxet","thulieblack"]'), github.event.comment.user.login ) &&
6565 (
6666 startsWith(github.event.comment.body, '/bounty' )
6767 )
6868
6969 runs-on : ubuntu-latest
7070 steps :
7171 - name : Add label `bounty`
72- uses : actions/github-script@v7
72+ uses : actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
7373 with :
7474 github-token : ${{ github.token }}
7575 script : |
@@ -105,14 +105,14 @@ jobs:
105105 issues : write # required to read/remove labels on the issue/PR
106106 pull-requests : write # required to read/remove labels on the issue/PR if it's a PR
107107 if : >
108- contains(fromJSON('["aeworxet","thulieblack"]'), github.actor ) &&
108+ contains(fromJSON('["aeworxet","thulieblack"]'), github.event.comment.user.login ) &&
109109 (
110110 startsWith(github.event.comment.body, '/unbounty' )
111111 )
112112 runs-on : ubuntu-latest
113113 steps :
114114 - name : Remove label `bounty`
115- uses : actions/github-script@v7
115+ uses : actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
116116 with :
117117 github-token : ${{ github.token }}
118118 script : |
0 commit comments