Skip to content

Commit 90fcfd0

Browse files
committed
Fix sku.py version read: use explicit exec namespace
1 parent 302e9de commit 90fcfd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.Pipelines/pipeline-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ stages:
5656

5757
- bash: |
5858
PARAM_VER="${{ parameters.packageVersion }}"
59-
SKU_VER=$(python -c "exec(open('msal/sku.py').read()); print(__version__)")
59+
SKU_VER=$(python -c "ns={}; exec(open('msal/sku.py').read(), ns); print(ns['__version__'])")
6060
6161
if [ -z "$PARAM_VER" ]; then
6262
echo "##vso[task.logissue type=error]packageVersion is required. Enter the version to publish (must match msal/sku.py __version__)."

0 commit comments

Comments
 (0)