Global-Variables
Global variables are accessible throughout the entire program, making them available globally within the organization where the secret is created.
#
To Create Global Variables:#
Step 1: Navigate to Settings:Click on Settings
in the sidebar.
![Dashboard page](/assets/images/github-s-913b11398300b17e3d78eeacb9c135cd.png)
#
Step 2: Access Variables:Within the settings, locate and click on the VARIABLES
section.
![Setting page](/assets/images/github-s1-4cf74508be1629af5bd47e65e9b93efe.png)
+ Create Global Variable
.#
Step 3: Click on ![Create Global Variable](/assets/images/gv1-cdfb9af916aff4a20a7f6b9db5ce2cd2.png)
#
Step 4: Follow these steps:![Create Global Variable](/assets/images/gv3-b37f760a83cb3beac94b0e3fc98624b4.png)
Type the name of the variable.
Choose an existing organization.
Enter the key for the variable.
Enter the value.
Lastly, click
Submit
.For example: name = my-variable, key = number, and value = 2. This creates a Global Variable and stores it.
#
Note: All Global variables are stored under the dashboard under variables.#
To Edit Global Variables:Under the Your Variables section, find the global variable.
Click the pen icon to edit it.
![Variable page](/assets/images/gv4-1726fdcaaa8df63affdf0f624c26636a.png)
- In the edit option, you can modify the following:
- Key
- Value
![edit variables](/assets/images/gv5-9e218e8c6b0d9ee6ee6fc82ee68d47e9.png)
- After editing, click the
Save
button to store the changes.
#
To Use Global Variables:Global variables are accessible at the time of deployment as environmental variables. To learn about their usage in the Deployment options, read the Apps and its Management section.