File tree Expand file tree Collapse file tree 4 files changed +4
-1
lines changed Expand file tree Collapse file tree 4 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 4444 shell : bash -eux {0}
4545 run : |
4646 export GITHUB_ACCESS_TOKEN=${{ inputs.token }}
47+ export GITHUB_ACTOR=${{ gitub.actor }}
4748 export RH_REPOSITORY=${{ inputs.target }}
4849 export RH_DRY_RUN=${{ inputs.dry_run }}
4950 export RH_RELEASE_URL=${{ inputs.release_url }}
Original file line number Diff line number Diff line change 4242 shell : bash -eux {0}
4343 run : |
4444 export GITHUB_ACCESS_TOKEN=${{ inputs.token }}
45+ export GITHUB_ACTOR=${{ gitub.actor }}
4546 export RH_REPOSITORY=${{ inputs.target }}
4647 export RH_DRY_RUN=${{ inputs.dry_run }}
4748 export RH_STEPS_TO_SKIP=${{ inputs.steps_to_skip }}
Original file line number Diff line number Diff line change 4747 shell : bash -eux {0}
4848 run : |
4949 export GITHUB_ACCESS_TOKEN=${{ inputs.token }}
50+ export GITHUB_ACTOR=${{ gitub.actor }}
5051 export RH_REPOSITORY=${{ inputs.target }}
5152 if [ ! -z ${{ inputs.branch }} ]; then
5253 export RH_BRANCH=${{ inputs.branch }}
Original file line number Diff line number Diff line change @@ -560,7 +560,7 @@ def prepare_environment(fetch_draft_release=True):
560560
561561 # Ensure the user is an admin.
562562 if not dry_run :
563- user = gh . users . get_authenticated ()[ "login " ]
563+ user = os . environ [ "GITHUB_ACTOR " ]
564564 collab_level = gh .repos .get_collaborator_permission_level (user )
565565 if not collab_level ["permission" ] == "admin" :
566566 raise RuntimeError (f"User { user } does not have admin permission" )
You can’t perform that action at this time.
0 commit comments