@@ -56,21 +56,12 @@ jobs:
56
56
- name : " Create release output"
57
57
run : echo '🎬 Release process for version ${{ inputs.version }} started by @${{ github.triggering_actor }}' >> $GITHUB_STEP_SUMMARY
58
58
59
- - name : " Create temporary app token"
60
- uses : actions/create-github-app-token@v1
61
- id : app-token
62
- with :
63
- app-id : ${{ vars.APP_ID }}
64
- private-key : ${{ secrets.APP_PRIVATE_KEY }}
65
-
66
- - name : " Store GitHub token in environment"
67
- run : echo "GH_TOKEN=${{ steps.app-token.outputs.token }}" >> "$GITHUB_ENV"
68
- shell : bash
69
-
70
- - uses : actions/checkout@v4
59
+ - name : " Generate token and checkout repository"
60
+ uses : mongodb-labs/drivers-github-tools/secure-checkout@v2
71
61
with :
62
+ app_id : ${{ vars.APP_ID }}
63
+ private_key : ${{ secrets.APP_PRIVATE_KEY }}
72
64
submodules : true
73
- token : ${{ env.GH_TOKEN }}
74
65
75
66
- name : " Set up drivers-github-tools"
76
67
uses : mongodb-labs/drivers-github-tools/setup@v2
@@ -196,21 +187,12 @@ jobs:
196
187
contents : write
197
188
198
189
steps :
199
- - name : " Create temporary app token"
200
- uses : actions/create-github-app-token@v1
201
- id : app-token
202
- with :
203
- app-id : ${{ vars.APP_ID }}
204
- private-key : ${{ secrets.APP_PRIVATE_KEY }}
205
-
206
- - name : " Store GitHub token in environment"
207
- run : echo "GH_TOKEN=${{ steps.app-token.outputs.token }}" >> "$GITHUB_ENV"
208
- shell : bash
209
-
210
- - uses : actions/checkout@v4
190
+ - name : " Generate token and checkout repository"
191
+ uses : mongodb-labs/drivers-github-tools/secure-checkout@v2
211
192
with :
193
+ app_id : ${{ vars.APP_ID }}
194
+ private_key : ${{ secrets.APP_PRIVATE_KEY }}
212
195
ref : refs/tags/${{ inputs.version }}
213
- token : ${{ env.GH_TOKEN }}
214
196
215
197
# Sets the S3_ASSETS environment variable used later
216
198
- name : " Set up drivers-github-tools"
0 commit comments