File tree 1 file changed +26
-0
lines changed
1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change
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 }}"
You can’t perform that action at this time.
0 commit comments