Skip to content

Commit 2284ecf

Browse files
authored
ci: use github secrets for GH token (#262)
1 parent 976f819 commit 2284ecf

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

.github/workflows/pre-post-release.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,24 +53,16 @@ jobs:
5353
- validate-tag
5454
permissions:
5555
contents: write
56+
env:
57+
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
5658
steps:
57-
- uses: elastic/apm-pipeline-library/.github/actions/github-token@current
58-
with:
59-
url: ${{ secrets.VAULT_ADDR }}
60-
roleId: ${{ secrets.VAULT_ROLE_ID }}
61-
secretId: ${{ secrets.VAULT_SECRET_ID }}
62-
63-
- uses: elastic/apm-pipeline-library/.github/actions/setup-git@current
64-
with:
65-
username: ${{ env.GIT_USER }}
66-
email: ${{ env.GIT_EMAIL }}
67-
token: ${{ env.GITHUB_TOKEN }}
68-
6959
- uses: actions/checkout@v4
7060
with:
7161
ref: ${{ inputs.ref }}
7262
token: ${{ env.GITHUB_TOKEN }}
7363

64+
- uses: elastic/oblt-actions/git/setup@v1
65+
7466
- name: Create the release tag (post phase)
7567
if: inputs.phase == 'post'
7668
run: |
@@ -100,3 +92,5 @@ jobs:
10092
10193
- name: Create the ${{ inputs.phase }} release PR
10294
run: gh pr create --title="${{ inputs.pr_title }}" --base main --head ${{ env.BRANCH_NAME }} -b "${{ inputs.pr_body }}"
95+
env:
96+
GH_TOKEN: ${{ env.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)