Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
figadore committed Dec 30, 2021
2 parents 9874a2a + db30602 commit 0ba6208
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
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 }}"
```

0 comments on commit 0ba6208

Please sign in to comment.