fix(README): update repository name, remove section for feature that is not yet implemented (#9)
test / test (push) Has been cancelled
test / test (push) Has been cancelled
Co-authored-by: Parker Brown <17183625+parkerbxyz@users.noreply.github.com>
This commit is contained in:
co-authored by
Parker Brown
parent
75a13e1cc6
commit
c04bb41e61
@@ -1,4 +1,4 @@
|
|||||||
# `gr2m/github-app-token-action`
|
# `actions/github-app-token`
|
||||||
|
|
||||||
> GitHub Action for creating a GitHub App Installation Access Token
|
> GitHub Action for creating a GitHub App Installation Access Token
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@ jobs:
|
|||||||
hello-world:
|
hello-world:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: gr2m/github-app-token-action@v1
|
- uses: actions/github-app-token@v1
|
||||||
id: app-token
|
id: app-token
|
||||||
with:
|
with:
|
||||||
app_id: ${{ vars.APP_ID }}
|
app_id: ${{ vars.APP_ID }}
|
||||||
@@ -31,24 +31,6 @@ jobs:
|
|||||||
body: "Hello, World!"
|
body: "Hello, World!"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Limit the app's permissions and access to repositories
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
on: [issues]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
with-scoped-token:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: gr2m/github-app-token-action@v1
|
|
||||||
id: app-token
|
|
||||||
with:
|
|
||||||
# required
|
|
||||||
app_id: ${{ vars.APP_ID }}
|
|
||||||
private_key: ${{ secrets.PRIVATE_KEY }}
|
|
||||||
# do something with the token
|
|
||||||
```
|
|
||||||
|
|
||||||
### Use app token with `actions/checkout`
|
### Use app token with `actions/checkout`
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
@@ -58,7 +40,7 @@ jobs:
|
|||||||
auto-format:
|
auto-format:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: gr2m/github-app-token-action@v1
|
- uses: actions/github-app-token@v1
|
||||||
id: app-token
|
id: app-token
|
||||||
with:
|
with:
|
||||||
# required
|
# required
|
||||||
|
|||||||
Reference in New Issue
Block a user