Skip to content

Commit 45c2f33

Browse files
committed
BREAKING: switch to official actions/create-github-app-token
This deprecates support for the token_scope input for custom actions which wasn't used anywhere anyway. It also deprecates support for the installation_id input as the installation will be derived from the repo owner. The old token action is still in use to enable auto-merge where custom token scopes were still required. This will be removed in the future when custom permissions are supported by the new action. See: tibdex/github-app-token#99 See: actions/create-github-app-token#3 Resolves: #790 Change-type: major Signed-off-by: Kyle Harding <[email protected]>
1 parent a80b7ec commit 45c2f33

File tree

7 files changed

+264
-653
lines changed

7 files changed

+264
-653
lines changed

.github/actions/always/action.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,3 @@ runs:
2727
echo "${INPUTS}"
2828
echo "${SECRETS}"
2929
echo "${VARIABLES}"
30-
31-
# https://github.com/marketplace/actions/github-app-token
32-
- name: Generate GitHub App installation token
33-
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
34-
id: gh_app_installation_token
35-
with:
36-
app_id: ${{ fromJSON(inputs.json).app_id }}
37-
installation_retrieval_mode: id
38-
installation_retrieval_payload: ${{ fromJSON(inputs.json).installation_id }}
39-
private_key: ${{ fromJSON(inputs.secrets).GH_APP_PRIVATE_KEY }}
40-
permissions: ${{ fromJSON(inputs.json).token_scope }}

.github/actions/clean/action.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,3 @@ runs:
2727
echo "${INPUTS}"
2828
echo "${SECRETS}"
2929
echo "${VARIABLES}"
30-
31-
# https://github.com/marketplace/actions/github-app-token
32-
- name: Generate GitHub App installation token
33-
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
34-
id: gh_app_installation_token
35-
with:
36-
app_id: ${{ fromJSON(inputs.json).app_id }}
37-
installation_retrieval_mode: id
38-
installation_retrieval_payload: ${{ fromJSON(inputs.json).installation_id }}
39-
private_key: ${{ fromJSON(inputs.secrets).GH_APP_PRIVATE_KEY }}
40-
permissions: ${{ fromJSON(inputs.json).token_scope }}

.github/actions/finalize/action.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,3 @@ runs:
2727
echo "${INPUTS}"
2828
echo "${SECRETS}"
2929
echo "${VARIABLES}"
30-
31-
# https://github.com/marketplace/actions/github-app-token
32-
- name: Generate GitHub App installation token
33-
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
34-
id: gh_app_installation_token
35-
with:
36-
app_id: ${{ fromJSON(inputs.json).app_id }}
37-
installation_retrieval_mode: id
38-
installation_retrieval_payload: ${{ fromJSON(inputs.json).installation_id }}
39-
private_key: ${{ fromJSON(inputs.secrets).GH_APP_PRIVATE_KEY }}
40-
permissions: ${{ fromJSON(inputs.json).token_scope }}

.github/actions/test/action.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,3 @@ runs:
3939
echo "semver=$(npx -q -y -- semver -c -l "${tag}")" >> $GITHUB_OUTPUT
4040
echo "describe=$(git describe --tags --always --dirty | cat)" >> $GITHUB_OUTPUT
4141
echo "sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
42-
43-
# https://github.com/marketplace/actions/github-app-token
44-
- name: Generate GitHub App installation token
45-
uses: tibdex/github-app-token@0914d50df753bbc42180d982a6550f195390069f # v2.0.0
46-
id: gh_app_installation_token
47-
with:
48-
app_id: ${{ fromJSON(inputs.json).app_id }}
49-
installation_retrieval_mode: id
50-
installation_retrieval_payload: ${{ fromJSON(inputs.json).installation_id }}
51-
private_key: ${{ fromJSON(inputs.secrets).GH_APP_PRIVATE_KEY }}
52-
permissions: ${{ fromJSON(inputs.json).token_scope }}

0 commit comments

Comments
 (0)