File tree 1 file changed +18
-6
lines changed
1 file changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -51,17 +51,29 @@ jobs:
51
51
runs-on : ubuntu-latest
52
52
needs :
53
53
- validate-tag
54
- permissions :
55
- contents : write
56
- env :
57
- GITHUB_TOKEN : ${{ secrets.RELEASE_GITHUB_TOKEN }}
58
54
steps :
55
+ - name : Get token
56
+ id : get_token
57
+ uses : tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
58
+ with :
59
+ app_id : ${{ secrets.OBS_AUTOMATION_APP_ID }}
60
+ private_key : ${{ secrets.OBS_AUTOMATION_APP_PEM }}
61
+ permissions : >-
62
+ {
63
+ "contents": "write",
64
+ "pull_requests": "write"
65
+ }
66
+ repositories : >-
67
+ ["ecs-logging-java"]
68
+
59
69
- uses : actions/checkout@v4
60
70
with :
61
71
ref : ${{ inputs.ref }}
62
- token : ${{ env.GITHUB_TOKEN }}
72
+ token : ${{ steps.get_token.outputs.token }}
63
73
64
74
- uses : elastic/oblt-actions/git/setup@v1
75
+ with :
76
+ github-token : ${{ steps.get_token.outputs.token }}
65
77
66
78
- name : Create the release tag (post phase)
67
79
if : inputs.phase == 'post'
93
105
- name : Create the ${{ inputs.phase }} release PR
94
106
run : gh pr create --title="${{ inputs.pr_title }}" --base main --head ${{ env.BRANCH_NAME }} -b "${{ inputs.pr_body }}"
95
107
env :
96
- GH_TOKEN : ${{ env.GITHUB_TOKEN }}
108
+ GH_TOKEN : ${{ steps.get_token.outputs.token }}
You can’t perform that action at this time.
0 commit comments