Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[GHA] Fix SCCACHE_AZURE_CONNECTION_STRING for Linux GPU MLIR workflow (#39583)

Andrey Babushkinf1d555866c24
diff --git a/.github/workflows/dev_gpu_linux_mlir.yml b/.github/workflows/dev_gpu_linux_mlir.yml
index be3bb4ee763..f86a5992503 100644
--- a/.github/workflows/dev_gpu_linux_mlir.yml
+++ b/.github/workflows/dev_gpu_linux_mlir.yml
@@ -182,9 +182,12 @@ jobs:
- name: Load SCCACHE_AZURE_CONNECTION_STRING from file
run: |
SCCACHE_AZURE_CONNECTION_STRING="$(cat /secrets/sccache/connection-string)"
+ # OpenDAL 0.58.1 that is used by sccache 0.18.0 no longer trims BlobEndpoint trailing slashes, producing invalid Azure URLs.
+ SCCACHE_AZURE_CONNECTION_STRING="$(sed -E 's#(^|;)(BlobEndpoint=[^;]*[^/;])/+(;|$)#\1\2\3#g' <<< "$SCCACHE_AZURE_CONNECTION_STRING")"
# nosemgrep: yaml.github-actions.security.audit.unsafe-add-mask-workflow-command.unsafe-add-mask-workflow-command
echo "::add-mask::${SCCACHE_AZURE_CONNECTION_STRING}"
echo "SCCACHE_AZURE_CONNECTION_STRING=${SCCACHE_AZURE_CONNECTION_STRING}" >> "$GITHUB_ENV"
+ echo "✓ Connection string loaded and masked"
- name: Clone OpenVINO
uses: ababushk/checkout@dd591a6a2ac25618db4eda86e7e0d938f88cf01b # cherry_pick_retries