1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 05:13:29 +00:00

BRE-1355 - Fix lite naming and remove PAT (#17743)

This commit is contained in:
Vince Grassia
2025-11-30 22:25:38 -05:00
committed by GitHub
parent 95def44097
commit 39a22113df

View File

@@ -158,7 +158,7 @@ jobs:
run: docker logout run: docker logout
bitwarden-lite-build: bitwarden-lite-build:
name: Trigger Bitwarden Lite build name: Trigger Bitwarden lite build
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
needs: setup needs: setup
permissions: permissions:
@@ -171,20 +171,27 @@ jobs:
tenant_id: ${{ secrets.AZURE_TENANT_ID }} tenant_id: ${{ secrets.AZURE_TENANT_ID }}
client_id: ${{ secrets.AZURE_CLIENT_ID }} client_id: ${{ secrets.AZURE_CLIENT_ID }}
- name: Retrieve GitHub PAT secrets - name: Get Azure Key Vault secrets
id: retrieve-secret-pat id: get-kv-secrets
uses: bitwarden/gh-actions/get-keyvault-secrets@main uses: bitwarden/gh-actions/get-keyvault-secrets@main
with: with:
keyvault: "bitwarden-ci" keyvault: gh-org-bitwarden
secrets: "github-pat-bitwarden-devops-bot-repo-scope" secrets: "BW-GHAPP-ID,BW-GHAPP-KEY"
- name: Log out from Azure - name: Log out from Azure
uses: bitwarden/gh-actions/azure-logout@main uses: bitwarden/gh-actions/azure-logout@main
- name: Trigger Bitwarden Lite build - name: Generate GH App token
uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
id: app-token
with:
app-id: ${{ steps.get-kv-secrets.outputs.BW-GHAPP-ID }}
private-key: ${{ steps.get-kv-secrets.outputs.BW-GHAPP-KEY }}
- name: Trigger Bitwarden lite build
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with: with:
github-token: ${{ steps.retrieve-secret-pat.outputs.github-pat-bitwarden-devops-bot-repo-scope }} github-token: ${{ steps.app-token.outputs.token }}
script: | script: |
await github.rest.actions.createWorkflowDispatch({ await github.rest.actions.createWorkflowDispatch({
owner: 'bitwarden', owner: 'bitwarden',
@@ -192,6 +199,7 @@ jobs:
workflow_id: 'build-bitwarden-lite.yml', workflow_id: 'build-bitwarden-lite.yml',
ref: 'main', ref: 'main',
inputs: { inputs: {
use_latest_core_version: true use_latest_core_version: true,
web_branch: process.env.GITHUB_REF
} }
}); });