Skip to content

Conversation

@Ruchii-27
Copy link
Contributor

@Ruchii-27 Ruchii-27 commented May 20, 2025

This checklist is used to make sure that common guidelines for a pull request are followed.

Related command

Update az login with optional param --allow-no-subscriptions - https://learn.microsoft.com/en-us/cli/azure/reference-index?view=azure-cli-latest#az-login-optional-parameters to fix issue described in this discussion - Azure/acr#835

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally? (pip install wheel==0.30.0 required)
  • My extension version conforms to the Extension version schema

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented May 20, 2025

️✔️Azure CLI Extensions Breaking Change Test
️✔️Non Breaking Changes

@azure-client-tools-bot-prd
Copy link

Hi @Ruchii-27,
Please write the description of changes which can be perceived by customers into HISTORY.rst.
If you want to release a new extension version, please update the version in setup.py as well.

@yonzhan
Copy link
Collaborator

yonzhan commented May 20, 2025

Thank you for your contribution! We will review the pull request and get back to you soon.

@github-actions
Copy link

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

@github-actions
Copy link

github-actions bot commented May 20, 2025

@yonzhan yonzhan requested a review from evelyn-ys May 20, 2025 06:00
Ruchi Maheshwari added 2 commits May 20, 2025 10:25
@Ruchii-27 Ruchii-27 marked this pull request as ready for review May 20, 2025 17:50
Copilot AI review requested due to automatic review settings May 20, 2025 17:50
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the az login commands to include an optional parameter so that users without active subscriptions can still login, and bumps the extension version for the release.

  • Updates version in setup.py and HISTORY.rst
  • Modifies az login commands in two YAML workflow templates
  • Updates release notes in HISTORY.rst

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
src/acrcssc/setup.py Bumps version from 1.0.0b1 to 1.0.0b2
src/acrcssc/azext_acrcssc/templates/task/cssc_trigger_workflow.yaml Updates az login command to include an extra parameter
src/acrcssc/azext_acrcssc/templates/task/cssc_scan_image.yaml Updates az login command to include an extra parameter
src/acrcssc/HISTORY.rst Updates release notes with version bump and fix note

@Ruchii-27 Ruchii-27 requested a review from Copilot May 20, 2025 17:57
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the behavior of az login to support accounts without active subscriptions by adding the --allow-no-subscriptions flag.

  • Bump extension version in setup.py from 1.0.0b1 to 1.0.0b2
  • Update az login commands in cssc_trigger_workflow.yaml and cssc_scan_image.yaml to include --allow-no-subscriptions
  • Update HISTORY.rst with the corresponding bug fix entry

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/acrcssc/setup.py Updated version to reflect the new release bump
src/acrcssc/azext_acrcssc/templates/task/cssc_trigger_workflow.yaml Modified az login command to include the --allow-no-subscriptions flag
src/acrcssc/azext_acrcssc/templates/task/cssc_scan_image.yaml Modified az login command in the vulnerability check section
src/acrcssc/HISTORY.rst Added release notes for version 1.0.0b2 with the bug fix description

Copy link
Contributor

@cegraybl cegraybl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Ruchii-27
Copy link
Contributor Author

@jiasli Please help review and merge this PR, thanks.

@yonzhan yonzhan requested review from jsntcy and kairu-ms May 22, 2025 00:10
@yonzhan yonzhan assigned kairu-ms and unassigned jiasli May 22, 2025
@Ruchii-27
Copy link
Contributor Author

@kairu-ms Please help review and merge this PR, thanks.

@kairu-ms
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@kairu-ms kairu-ms merged commit 7af0671 into Azure:main May 27, 2025
24 checks passed
@azclibot
Copy link
Collaborator

[Release] Update index.json for extension [ acrcssc-1.0.0b2 ] : https://dev.azure.com/msazure/One/_build/results?buildId=125383974&view=results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Account Auto-Assign Auto assign by bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants