diff --git a/projects/microsoft.com/azure-storage-azcopy/package.yml b/projects/microsoft.com/azure-storage-azcopy/package.yml index 9138fb35..7d0ffdc0 100644 --- a/projects/microsoft.com/azure-storage-azcopy/package.yml +++ b/projects/microsoft.com/azure-storage-azcopy/package.yml @@ -8,8 +8,7 @@ versions: build: dependencies: go.dev: '>=1.19' - script: - go build $ARGS -ldflags="$LDFLAGS" + script: go build $ARGS -ldflags="$LDFLAGS" env: ARGS: - -trimpath @@ -26,5 +25,9 @@ provides: test: - azcopy --version | grep {{version}} + - azcopy list https://storageaccountname.blob.core.windows.net/containername/ || true - azcopy list https://storageaccountname.blob.core.windows.net/containername/ > output.txt || true - - cat output.txt | grep 'Login Credentials missing' \ No newline at end of file + - run: cat output.txt | grep 'Login Credentials missing' + if: '<10.23' + - run: cat output.txt | grep 'This request is not authorized to perform this operation' + if: '>=10.23'