-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PRT comment adding using curl more standard way #12521
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK ! But has got some question !
repo-token: ${{ secrets.CHERRYPICK_PAT }} | ||
run: | | ||
ISSUE_NUMBER=${{ steps.cherrypick.outputs.number }} | ||
GITHUB_TOKEN="${{ secrets.CHERRYPICK_PAT }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure! But this must be overriding the default GITHUB_TOKEN comes from Github, if not or anyways its good to rename it just to avoid the confusion !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@omkarkhatavkar Can you check this and update PR accordingly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jyejare , @Gauravtalreja1 Yes, we are passing the "${{ secrets.CHERRYPICK_PAT }}" our own Satellie_user token, you know it why we need that if we use the GITHUB_TOKEN
then the PR would have a comment from the GitHubAction user, while we are using Satellite
user everywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@omkarkhatavkar I got that! I just wanted to reiterate that we could have named the GITHUB_TOKEN
env var to something else for CHERRYPICK_PAT, cause this will actually override the GITHUB_TOKEN
which in the feature you might want to use in this GHA.
I mean is the naming of env var here deliberate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can directly pass the CHERRYPICK_PAT instead the variable as well. If that work for you ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure! Use it directly :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jyejare tested here https://github.com/omkarkhatavkar/robottelo/actions/runs/6693395618/job/18184437416?pr=158#step:2:1, token is not ****
looks okay to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure!
da61c5a
to
9140baf
Compare
PRT comment adding using curl more standtard way
Moving away from github action to standard curl for handing the PRT comment