Skip to content

Commit 8aff46a

Browse files
author
Ivo Hlavaty
committed
secrets pipeline
1 parent 99bec23 commit 8aff46a

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
---
3+
name: sync secrets
4+
on: # yamllint disable-line rule:truthy
5+
push:
6+
branches:
7+
- engops_maintenance
8+
permissions:
9+
id-token: write
10+
contents: read
11+
jobs:
12+
sync:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Login to Azure
16+
uses: azure/login@v1
17+
with:
18+
client-id: ${{ vars.GH_APP_ORG_ENGOPS_MAINTENANCE_CLIENT_ID }}
19+
tenant-id: ${{ vars.AZURE_SWI_TENANT_ID }}
20+
subscription-id: ${{ vars.AZURE_ITSANDBOX_SUBSCRIPTION_ID }}
21+
- name: 'set-org-secret'
22+
run: |
23+
echo "Syncing CODECOV_TOKEN ..."
24+
SECRET="CODECOV_TOKEN"
25+
SECRET_NAME="vividcortex--siesta--${SECRET//_/-}"
26+
[ ! -z "${{ secrets.CODECOV_TOKEN }}" ] && az keyvault secret set --name "$SECRET_NAME" --vault-name "gh-scs" --value "${{ secrets.CODECOV_TOKEN }}"

0 commit comments

Comments
 (0)