You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An action to set the Terraform Envrionment variables to access Azure
2
+
3
+
An action to set the Terraform environment variables to access Azure.
4
+
5
+
## Overview
6
+
7
+
This GitHub Action fetches secrets from Azure Key Vault and sets them as environment variables required for Terraform to authenticate with Azure. It supports both local development and GitHub Actions workflows.
8
+
9
+
## Features
10
+
11
+
- Fetch secrets from Azure Key Vault using service principal credentials.
12
+
- Set secrets as environment variables for Terraform.
13
+
- Integrate with GitHub Actions by writing secrets to the `GITHUB_ENV` file.
14
+
15
+
## Prerequisites
16
+
17
+
- Python 3.11
18
+
- Azure subscription with a Key Vault and registered secrets.
19
+
- Service principal credentials (`AZURE_TENANT_ID`, `AZURE_CLIENT_ID`, `AZURE_CLIENT_SECRET`) set in a `.env` file.
20
+
-`config.toml` file specifying Key Vault name and secret names.
21
+
- poetry to manage dependencies. use `poetry install` to install dependencies.
22
+
-### run the code as **poetry run python3 fetch_kv_secret.py** to execute the script.
0 commit comments