From 2b28c624d65b2c3d5be66d6f26aaadeb29d1e3ee Mon Sep 17 00:00:00 2001 From: Jan Calanog Date: Tue, 27 Aug 2024 15:05:50 +0200 Subject: [PATCH] ci: use obltmachine for tagging and creating the release in the release workflow (#948) * Use obltmachine for tagging in the release workflow * Add missing places where we need to use the PAT --- .github/workflows/release.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5579b810..a514bb5b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,6 @@ on: default: false permissions: - contents: write # needed to push the tag and create the release id-token: write # to enable use of OIDC for npm provenance jobs: @@ -27,7 +26,11 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - - uses: elastic/apm-pipeline-library/.github/actions/setup-git@current + token: ${{ secrets.RELEASE_GITHUB_TOKEN }} + + - uses: elastic/oblt-actions/git/setup@v1 + with: + github-token: ${{ secrets.RELEASE_GITHUB_TOKEN }} - run: npm ci # runs npm prepublish - name: configure NPMJS token @@ -36,7 +39,7 @@ jobs: - run: npx semantic-release --dry-run="${DRY_RUN}" env: DRY_RUN: ${{ github.event.inputs.dry-run }} - GITHUB_TOKEN: ${{ github.token }} + GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }} - name: Get version and package name run: |