Skip to content

Commit ef6f0db

Browse files
authored
ci(release-github-token): use GitHub secrets (#283)
1 parent 80f0b8a commit ef6f0db

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

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

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -54,24 +54,18 @@ jobs:
5454
- validate-tag
5555
permissions:
5656
contents: write
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
5759
steps:
58-
- uses: elastic/apm-pipeline-library/.github/actions/github-token@current
59-
with:
60-
url: ${{ secrets.VAULT_ADDR }}
61-
roleId: ${{ secrets.VAULT_ROLE_ID }}
62-
secretId: ${{ secrets.VAULT_SECRET_ID }}
63-
64-
- uses: elastic/apm-pipeline-library/.github/actions/setup-git@current
65-
with:
66-
username: ${{ env.GIT_USER }}
67-
email: ${{ env.GIT_EMAIL }}
68-
token: ${{ env.GITHUB_TOKEN }}
69-
7060
- uses: actions/checkout@v4
7161
with:
7262
ref: ${{ inputs.ref }}
7363
token: ${{ env.GITHUB_TOKEN }}
74-
64+
65+
- uses: elastic/oblt-actions/git/setup@v1
66+
with:
67+
github-token: ${{ env.GITHUB_TOKEN }}
68+
7569
- name: Create the release tag (post phase)
7670
if: inputs.phase == 'post'
7771
run: |

0 commit comments

Comments
 (0)