-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Make token semantics match actions/checkout #65
Conversation
@spenserblack request review |
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 just remembered that gh
is installed in actions, and we can use that.
Just set the environment variable GH_TOKEN
when using gh
, and clone with gh repo clone ${{ inputs.repository }}.wiki
. It should simplify authentication concerns, and is worth checking out.
ill have to try that! idk if itll work since it's not cloning a project, but cloning the .wiki.git git repo. basically, the question is: does this work? gh repo clone spenserblack/actions-wiki.wiki
gh repo clone spenserblack/actions-wiki.wiki.git ??? i havent tried so it might work, or might not 🤷♂️ |
also question is if |
@spenserblack 🥳 it works! |
i think merge this with the $GITHUB_ACTOR thing, and then in the future consider the gh cli instead? sound good @spenserblack ? |
Yeah, |
this pr would...
token: ${{ secrets.TOKENHERE }}
in readmehttps://x:$TOKEN@github.com/user/repo.wiki.git
in git opstoken: ${{ github.token }}
in action.yml