Skip to content

Commit f62575e

Browse files
committed
get secrets from azure keyvault
1 parent 86160d8 commit f62575e

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/cleanup.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,21 @@ permissions:
1717

1818
env:
1919
DEFAULT_RETENTION_DAYS: "30"
20-
AWSAccount: ${{ secrets.AWS_ACCOUNT_ID }}
21-
AWSRoleName: ${{ secrets.AWS_ROLE_NAME }}
22-
AWSS3Bucket: "nginx-org-staging"
2320

2421
jobs:
2522
cleanup:
2623
runs-on: ubuntu-24.04
2724
if: github.repository == 'nginx/nginx.org'
2825
steps:
26+
- name: Get secrets from Azure
27+
uses: nginx/ci-self-hosted/.github/actions/get-from-vault@0fc1fc087a55f75740cebba008010c812b6d0da2
28+
with:
29+
client-id: ${{secrets.NGINX_ORG_CLIENT_ID}}
30+
tenant-id: ${{secrets.NGINX_ORG_TENANT_ID}}
31+
vault-name: ${{secrets.NGINX_ORG_VAULT_NAME}}
32+
secret-names: "NginxOrgAwsAccountID, NginxOrgAwsRoleName, NginxOrgAwsS3Bucket"
33+
env-names: "AWSAccount, AWSRoleName, AWSS3Bucket"
34+
2935
- name: Configure AWS credentials via OIDC (assume role)
3036
uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4
3137
with:

0 commit comments

Comments
 (0)