From 3f01a63eb949135d3ac64981ae5ac87e9f47253e Mon Sep 17 00:00:00 2001 From: Brynjulf Risbakken Date: Wed, 14 Feb 2024 16:07:18 +0100 Subject: [PATCH] :bug: :construction_worker: pass github token correctly to workflow --- .github/workflows/push.yml | 2 ++ .github/workflows/release.yaml | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 863fc47b9..0204bf625 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -18,3 +18,5 @@ jobs: name: Create release notes needs: [publish] uses: ./.github/workflows/release.yaml + secrets: + github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index cbfe7382f..16d39e12c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,6 +1,9 @@ name: Create release on: workflow_call: + secrets: + github-token: + required: true jobs: release: name: Release @@ -19,12 +22,12 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: "lts/*" + node-version: 'lts/*' - name: Install dependencies run: npm ci - name: Release env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.github-token }} run: npx semantic-release