-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main'
- Loading branch information
Showing
1 changed file
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,15 @@ | ||
# gh-app-access-token-action | ||
# gh-app-access-token-action | ||
Use this module to get a GitHub App's access token. This can be useful in automation wherever a personal access token would normally be used (but does not currently work with GitHub's package registry). We decided it was best to use our own action here, rather than third party, because it deals with handling secrets. This action would be a fine candidate to publish to the marketplace (recommending that people fork it, for the same reason we don't use marketplace actions for this) | ||
|
||
Suggested usage: | ||
``` | ||
- name: Get GitHub App installation access token | ||
id: access_token | ||
uses: vivantehealth/gh-app-access-token-action/@main | ||
with: | ||
app-id: 141210 | ||
installation-id: 19791482 | ||
private-key: ${{ secrets.GH_PACKAGE_REGISTRY_READER_PRIVATE_KEY }} | ||
- name: Do something in GitHub | ||
run: echo "masked token: ${{ steps.access_token.outputs.token }}" | ||
``` |