You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 7, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: action.yml
+30-7Lines changed: 30 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -5,22 +5,45 @@ inputs:
5
5
app_id:
6
6
description: ID of the GitHub App.
7
7
required: true
8
-
installation_id:
9
-
description: The ID of the installation for which the token will be requested (defaults to the ID of the repository's installation).
10
8
github_api_url:
11
9
description: The API URL of the GitHub server.
12
10
default: ${{ github.api_url }}
11
+
installation_retrieval_mode:
12
+
description: >-
13
+
The mode used to retrieve the installation for which the token will be requested.
14
+
15
+
One of:
16
+
- id: use the installation with the specified ID.
17
+
- organization: fetch an organization installation (https://docs.github.com/en/rest/apps/apps?apiVersion=2022-11-28#get-an-organization-installation-for-the-authenticated-app).
18
+
- repository: fetch a repository installation (https://docs.github.com/en/rest/apps/apps?apiVersion=2022-11-28#get-a-repository-installation-for-the-authenticated-app).
19
+
- user: fetch a user installation (https://docs.github.com/en/rest/apps/apps?apiVersion=2022-11-28#get-a-user-installation-for-the-authenticated-app).
20
+
default: repository
21
+
installation_retrieval_payload:
22
+
description: >-
23
+
The payload used to retrieve the installation.
24
+
25
+
Examples for each retrieval mode:
26
+
- id: 1337
27
+
- organization: github
28
+
- repository: tibdex/github-app-token
29
+
- user: tibdex
30
+
default: ${{ github.repository }}
13
31
permissions:
14
-
description: The JSON-stringified permissions granted to the token (defaults to all the GitHub app permissions, see https://docs.github.com/en/rest/apps/apps#create-an-installation-access-token-for-an-app).
32
+
description: >-
33
+
The JSON-stringified permissions granted to the token.
34
+
Default to all the GitHub app permissions.
35
+
See https://docs.github.com/en/rest/apps/apps?apiVersion=2022-11-28#create-an-installation-access-token-for-an-app's `permissions`.
15
36
private_key:
16
37
description: Private key of the GitHub App (can be Base64 encoded).
17
38
required: true
18
-
repository:
19
-
description: The full name of the repository for which the token will be requested.
20
-
default: ${{ github.repository }}
39
+
repositories:
40
+
description: >-
41
+
The JSON-stringified array of the full names of the repositories the token should have access to.
42
+
Default to all repositories that the installation can access.
43
+
See See https://docs.github.com/en/rest/apps/apps?apiVersion=2022-11-28#create-an-installation-access-token-for-an-app's `repositories`.
21
44
outputs:
22
45
token:
23
-
description: An installation token for the GitHub App on the requested repository.
46
+
description: An installation token for the GitHub App on the requested repositories.
0 commit comments