Skip to content

Commit ebe1324

Browse files
committed
fix: normalize app auth runtime handling
1 parent 9ca2ef9 commit ebe1324

9 files changed

Lines changed: 254 additions & 3781 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
- name: ⤵️ Checkout
1515
uses: actions/checkout@v3
1616
- name: 🚧 Install
17-
run: yarn
17+
run: npm ci
1818
- name: 📦 Build
19-
run: yarn build
19+
run: npm run build
2020
- name: 🔑 Generate Token
2121
uses: ./
2222
with:

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,15 @@ Various inputs are defined to let you configure the action:
118118
119119
> Note: [Workflow command and parameter names are not case-sensitive](https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#about-workflow-commands).
120120
121-
| Name | Description | Default |
122-
|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-------------:|
123-
| `app_id` | The ID of the GitHub App. [Create an secret](https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets#creating-encrypted-secrets-for-a-repository) named `'APP_ID'` to store your app ID, then used by `${{ secrets.APP_ID }}` | N/A |
124-
| `private_key` | The private key of the GitHub App (can be Base64 encoded). [Create an secret](https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets#creating-encrypted-secrets-for-a-repository) named `'PRIVATE_KEY'` to store your app private key, then used by `${{ secrets.APP_ID }}` | N/A |
125-
| `fallback` | The fallback token when app token generate failed | N/A |
126-
| `app_slug_name` | The app slug name exported to `env` or saved to `secrets` | `"BOT_NAME"` |
127-
| `app_token_name` | The app token name exported to `env` or saved to `secrets` | `"BOT_TOKEN"` |
128-
| `secret` | Specify `true` to save app token and app slug into the secrets of current repository | `false` |
129-
| `clean` | Specify `true` to clean saved secrets when workflow run completed. Only used when `secret` specfiied to `true` | `true` |
121+
| Name | Description | Default |
122+
| --- | --- | :-: |
123+
| `app_id` | The ID of the GitHub App. [Create an secret](https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets#creating-encrypted-secrets-for-a-repository) named `'APP_ID'` to store your app ID, then used by `${{ secrets.APP_ID }}` | N/A |
124+
| `private_key` | The private key of the GitHub App (can be Base64 encoded; escaped newlines like `\n` are also supported). [Create an secret](https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets#creating-encrypted-secrets-for-a-repository) named `'PRIVATE_KEY'` to store your app private key, then used by `${{ secrets.APP_ID }}` | N/A |
125+
| `fallback` | The fallback token when app token generate failed | N/A |
126+
| `app_slug_name` | The app slug name exported to `env` or saved to `secrets` | `"BOT_NAME"` |
127+
| `app_token_name` | The app token name exported to `env` or saved to `secrets` | `"BOT_TOKEN"` |
128+
| `secret` | Specify `true` to save app token and app slug into the secrets of current repository | `false` |
129+
| `clean` | Specify `true` to clean saved secrets when workflow run completed. Only used when `secret` specfiied to `true` | `true` |
130130

131131
## License
132132

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Use App token
1+
name: Use Your App token in GitHub Actions
22
description: Run GitHub Actions as a GitHub App by using the app's authentication token.
33
author: bubkoo <bubkoo.wy@gmail.com>
44
inputs:

dist/index.js.cache

1.16 MB
Binary file not shown.

dist/index.js.cache.js

Lines changed: 17 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)