mirror of
https://github.com/bitwarden/server.git
synced 2025-05-17 09:35:39 -05:00
Add secret retrieval step
This commit is contained in:
parent
79328da856
commit
798e391b1b
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
@ -109,6 +109,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
creds: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}
|
creds: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}
|
||||||
|
|
||||||
|
- name: Retrieve GitHub PAT secrets
|
||||||
|
id: retrieve-secret-pat
|
||||||
|
uses: bitwarden/gh-actions/get-keyvault-secrets@main
|
||||||
|
with:
|
||||||
|
keyvault: "bitwarden-ci"
|
||||||
|
secrets: "github-pat-bitwarden-devops-bot-repo-scope"
|
||||||
|
|
||||||
- name: Login to PROD ACR
|
- name: Login to PROD ACR
|
||||||
run: az acr login -n ${_AZ_REGISTRY%.azurecr.io}
|
run: az acr login -n ${_AZ_REGISTRY%.azurecr.io}
|
||||||
|
|
||||||
@ -172,6 +179,8 @@ jobs:
|
|||||||
linux/arm64
|
linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.image-name.outputs.name }}
|
tags: ${{ steps.image-name.outputs.name }}
|
||||||
|
secrets: |
|
||||||
|
"GH_PAT=${{ steps.retrieve-secret-pat.outputs.github-pat-bitwarden-devops-bot-repo-scope }}"
|
||||||
|
|
||||||
- name: Scan Docker image
|
- name: Scan Docker image
|
||||||
id: container-scan
|
id: container-scan
|
||||||
|
Loading…
x
Reference in New Issue
Block a user