Add vcpkg secrets check to CI workflow

Added a step in ResInsightWithCache.yml to verify that the required AZURE_VCPKG_STORAGE_ACCOUNT and AZURE_VCPKG_SAS_TOKEN secrets are set before running the configure step. This ensures the workflow fails early with a clear error if these secrets are missing, improving reliability and debuggability.
This commit is contained in:
Magne Sjaastad authored and Kristian Bendiksen committed 2026-01-05 17:34:57 +01:00
1 parent 6d7151a5e2
commit b383baa97f
1 file changed
+13
+13
View File
@@ -184,6 +184,19 @@ jobs:
echo "Executable path: $EXEC_PATH"
"$EXEC_PATH" --version
- name: Check vcpkg secrets
shell: bash
run: |
if [ -z "${{ secrets.AZURE_VCPKG_STORAGE_ACCOUNT }}" ]; then
echo "Error: AZURE_VCPKG_STORAGE_ACCOUNT secret is not set"
exit 1
fi
if [ -z "${{ secrets.AZURE_VCPKG_SAS_TOKEN }}" ]; then
echo "Error: AZURE_VCPKG_SAS_TOKEN secret is not set"
exit 1
fi
echo "All required vcpkg secrets are present"
- name: Configure
shell: bash
env: