From 524b95058217418028fa7aca867ec0e54ff23ae0 Mon Sep 17 00:00:00 2001 From: Michal Checinski Date: Thu, 29 Feb 2024 13:52:19 +0100 Subject: [PATCH 1/2] Add token to sdk-go repo checkout --- .github/workflows/release-go.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-go.yml b/.github/workflows/release-go.yml index 830e5f313..ca2c49d3c 100644 --- a/.github/workflows/release-go.yml +++ b/.github/workflows/release-go.yml @@ -57,13 +57,6 @@ jobs: with: path: sdk - - name: Checkout SDK-Go repo - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 - with: - repository: bitwarden/sm-sdk-go - path: sm-sdk-go - ref: main - - name: Login to Azure - Prod Subscription uses: Azure/login@92a5484dfaf04ca78a94597f4f19fea633851fa2 # v1.4.7 with: @@ -76,6 +69,14 @@ jobs: keyvault: ${{ env._KEY_VAULT }} secrets: "github-pat-bitwarden-devops-bot-repo-scope" + - name: Checkout SDK-Go repo + uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 + with: + repository: bitwarden/sm-sdk-go + path: sm-sdk-go + ref: main + token: ${{ steps.retrieve-secrets.outputs.github-pat-bitwarden-devops-bot-repo-scope }} + - name: Setup Git working-directory: sm-sdk-go run: | From 82eb7dae8121a5450b0bc44c95c6fce79025680e Mon Sep 17 00:00:00 2001 From: Michal Checinski Date: Thu, 29 Feb 2024 17:47:02 +0100 Subject: [PATCH 2/2] Fix kv name --- .github/workflows/release-go.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-go.yml b/.github/workflows/release-go.yml index ca2c49d3c..b9ff394be 100644 --- a/.github/workflows/release-go.yml +++ b/.github/workflows/release-go.yml @@ -1,4 +1,5 @@ -name: Release Go +name: Release Go SDK +run-name: Release Go SDK ${{ inputs.release_type }} on: workflow_dispatch: @@ -15,6 +16,7 @@ on: env: GO111MODULE: on GO_VERSION: "^1.18" + _KEY_VAULT: "bitwarden-ci" jobs: validate: @@ -47,7 +49,6 @@ jobs: runs-on: ubuntu-22.04 needs: validate env: - _KEY_VAULT: "bitwarden-ci" _BOT_EMAIL: 106330231+bitwarden-devops-bot@users.noreply.github.com _BOT_NAME: bitwarden-devops-bot _PKG_VERSION: ${{ needs.validate.outputs.version }}