diff --git a/src/acrcssc/HISTORY.rst b/src/acrcssc/HISTORY.rst index b118e0d24ce..2dd1e3fe4e4 100644 --- a/src/acrcssc/HISTORY.rst +++ b/src/acrcssc/HISTORY.rst @@ -2,6 +2,10 @@ Release History =============== +1.0.0b2 +++++++ +* Bug fix: Updated to allow for az login when the account doesn't have any active subscriptions + 1.0.0b1 ++++++ diff --git a/src/acrcssc/azext_acrcssc/templates/task/cssc_scan_image.yaml b/src/acrcssc/azext_acrcssc/templates/task/cssc_scan_image.yaml index 7746e7a25f9..ee0920ac918 100644 --- a/src/acrcssc/azext_acrcssc/templates/task/cssc_scan_image.yaml +++ b/src/acrcssc/azext_acrcssc/templates/task/cssc_scan_image.yaml @@ -45,7 +45,7 @@ steps: if [ "$eoslValue" = "true" ]; then \ echo "PATCHING will be skipped as EOSL is $eoslValue for image {{.Values.SOURCE_REPOSITORY}}:{{.Values.SOURCE_IMAGE_TAG}}"; \ elif [ $vulCount -gt 0 ]; then \ - az login --identity; \ + az login --identity --allow-no-subscriptions; \ echo "Total OS vulnerabilities found -> $vulCount"; \ echo "PATCHING task scheduled for image {{.Values.SOURCE_REPOSITORY}}:{{.Values.SOURCE_IMAGE_TAG}}, new patch tag will be {{.Values.SOURCE_IMAGE_ORIGINAL_TAG}}-{{.Values.SOURCE_IMAGE_NEWPATCH_TAG}}"; \ az acr task run --name $patchimagetask --registry $RegistryName --set SOURCE_REPOSITORY={{.Values.SOURCE_REPOSITORY}} --set SOURCE_IMAGE_TAG={{.Values.SOURCE_IMAGE_ORIGINAL_TAG}} --set SOURCE_IMAGE_NEWPATCH_TAG={{.Values.SOURCE_IMAGE_NEWPATCH_TAG}} --no-wait; \ diff --git a/src/acrcssc/azext_acrcssc/templates/task/cssc_trigger_workflow.yaml b/src/acrcssc/azext_acrcssc/templates/task/cssc_trigger_workflow.yaml index 994e6539585..57e01460571 100644 --- a/src/acrcssc/azext_acrcssc/templates/task/cssc_trigger_workflow.yaml +++ b/src/acrcssc/azext_acrcssc/templates/task/cssc_trigger_workflow.yaml @@ -23,7 +23,7 @@ steps: - ACR_EXPERIMENTAL_CSSC=true - cmd: bash -c 'sed -n "/^Listing/,/^Matches/ {/^Listing/b;/^Matches/b;/^Repo/b;p}" filterReposWithPatchTags.txt' > filteredReposAndTags.txt - cmd: bash -c 'sed -n "/^Configured Tag Convention:/p" filterReposWithPatchTags.txt' > tagConvention.txt - - cmd: az login --identity + - cmd: az login --identity --allow-no-subscriptions - id: scan-and-schedule-patch timeout: 1800 cmd: | diff --git a/src/acrcssc/setup.py b/src/acrcssc/setup.py index c03ee877499..8b30c9894ea 100644 --- a/src/acrcssc/setup.py +++ b/src/acrcssc/setup.py @@ -13,7 +13,7 @@ from distutils import log as logger logger.warn("Wheel is not available, disabling bdist_wheel hook") -VERSION = '1.0.0b1' +VERSION = '1.0.0b2' # The full list of classifiers is available at # https://pypi.python.org/pypi?%3Aaction=list_classifiers