I have a dot net 6 system tests running in the following GitHub Actions step
- name: Build and Test with dotnet
run: dotnet test --configuration Release
At some point in the test execution, an environment variable is accessed:
Environment.GetEnvironmentVariable("AZURE_STORAGE_CONNECTION_STRING");
The critical issue is that this environment variable is null at execution time, which is causing our tests to fail.
If I look at the GitHub action log at the beginning of the step, I can see the environment variable is defined correctly:
So far, I have used variables within the GitHub Action jobs but not in the executing code.
Do you know why the value is not correctly resolved on the executing code?