File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -34,18 +34,22 @@ jobs:
3434 env :
3535 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3636
37+ - name : check user permission (non-PR)
38+ if : ${{ inputs.pr_user_login }} == '' && steps.checkAccess.outputs.require-result == 'false'
39+ run : |
40+ echo "${{ github.triggering_actor }} does not have permissions on this repo."
41+ echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}"
42+ echo "Job originally triggered by ${{ github.actor }}"
43+ exit 1
44+
3745 - name : check user permission
3846 if : |
39- (
4047 !(
4148 (${{ inputs.pr_user_login }} == 'dependabot[bot]' && github.triggering_actor != 'dependabot[bot]') ||
4249 (${{ inputs.pr_user_login }} == 'renovate[bot]' && github.triggering_actor != 'renovate[bot]')
4350 )
4451 &&
4552 steps.checkAccess.outputs.require-result == 'false'
46- )
47- ||
48- ( ${{ inputs.pr_user_login }} != '' && steps.checkAccess.outputs.require-result == 'false' )
4953 run : |
5054 echo "${{ github.triggering_actor }} does not have permissions on this repo."
5155 echo "Current permission level is ${{ steps.checkAccess.outputs.user-permission }}"
You can’t perform that action at this time.
0 commit comments