Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: actions/create-github-app-token
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.2
Choose a base ref
...
head repository: actions/create-github-app-token
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.0.3
Choose a head ref
  • 3 commits
  • 3 files changed
  • 2 contributors

Commits on Aug 21, 2023

  1. ci: update test (#8)

    gr2m authored Aug 21, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d1dfb47 View commit details
  2. build(CODEOWNERS): initial version (#7)

    Co-authored-by: Parker Brown <17183625+parkerbxyz@users.noreply.github.com>
    gr2m and parkerbxyz authored Aug 21, 2023
    Copy the full SHA
    75a13e1 View commit details
  3. fix(README): update repository name, remove section for feature that …

    …is not yet implemented (#9)
    
    Co-authored-by: Parker Brown <17183625+parkerbxyz@users.noreply.github.com>
    gr2m and parkerbxyz authored Aug 21, 2023
    Copy the full SHA
    c04bb41 View commit details
Showing with 10 additions and 26 deletions.
  1. +1 −0 .github/CODEOWNERS
  2. +6 −5 .github/workflows/test.yml
  3. +3 −21 README.md
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @gr2m @parkerbxyz @actions/github-app-token-maintainers
11 changes: 6 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
name: test
on: [push]

jobs:
demo:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.16'
cache: 'npm'
node-version: "16.16"
cache: "npm"
- run: npm ci
- run: npm run build
- uses: ./ # Uses the action in the root directory
id: demo
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
app_id: ${{ vars.TEST_APP_ID }}
private_key: ${{ secrets.TEST_APP_PRIVATE_KEY }}
- uses: octokit/request-action@v2.x
id: get-repository
env:
24 changes: 3 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# `gr2m/github-app-token-action`
# `actions/github-app-token`

> GitHub Action for creating a GitHub App Installation Access Token
@@ -19,7 +19,7 @@ jobs:
hello-world:
runs-on: ubuntu-latest
steps:
- uses: gr2m/github-app-token-action@v1
- uses: actions/github-app-token@v1
id: app-token
with:
app_id: ${{ vars.APP_ID }}
@@ -31,24 +31,6 @@ jobs:
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`

```yaml
@@ -58,7 +40,7 @@ jobs:
auto-format:
runs-on: ubuntu-latest
steps:
- uses: gr2m/github-app-token-action@v1
- uses: actions/github-app-token@v1
id: app-token
with:
# required