Skip to content

Update pip3 to python3 -m pip format in workflow Co-authored-by: Jury1981 <210622247+Jury1981@users.noreply.github.com>#31

Open
Jury1981 wants to merge 6 commits intomasterfrom
copilot/connect-streamline-login-process
Open

Update pip3 to python3 -m pip format in workflow Co-authored-by: Jury1981 <210622247+Jury1981@users.noreply.github.com>#31
Jury1981 wants to merge 6 commits intomasterfrom
copilot/connect-streamline-login-process

Conversation

@Jury1981
Copy link
Copy Markdown
Owner

@Jury1981 Jury1981 commented Feb 28, 2026

Create security detail for new sponsored establishments to the IE and the Kingdom of Athens Based in Berkeley, California and MIT. It will be sponsorship for our client and conglomerate of highly qualified ai security officers through Federal HCS Programs through ```
``


## Summary by Sourcery

Add dev container support and documentation for the Azure Login Action and adjust canary workflow package installation to use python3 -m pip.

Enhancements:
- Introduce a development helper script for common build, test, and Azure validation tasks in the dev container environment.

Build:
- Update the canary GitHub Actions workflow to install Azure CLI using python3 -m pip instead of pip3.

Documentation:
- Document dev container usage and features in the main README and add detailed dev container documentation and examples under .devcontainer/.

Jury1981 and others added 6 commits January 30, 2026 21:51
…y-again

Enable Azure Login action by committing compiled output
Co-authored-by: Jury1981 <210622247+Jury1981@users.noreply.github.com>
Co-authored-by: Jury1981 <210622247+Jury1981@users.noreply.github.com>
…pport

Co-authored-by: Jury1981 <210622247+Jury1981@users.noreply.github.com>
Co-authored-by: Jury1981 <210622247+Jury1981@users.noreply.github.com>
@sourcery-ai
Copy link
Copy Markdown

sourcery-ai Bot commented Feb 28, 2026

Reviewer's Guide

Adds a dev container-based development environment (docs, helper script, and configuration) and standardizes Azure CLI installation in the canary GitHub Actions workflow by using python3 -m pip instead of pip3.

Flow diagram for dev.sh command routing

flowchart TD
    A_Start[Start dev.sh] --> B_Get_Command[Read first CLI argument]

    B_Get_Command -->|check| C_Check[run_checks]
    B_Get_Command -->|build| D_Build[build_action]
    B_Get_Command -->|test| E_Test[run_tests]
    B_Get_Command -->|dev| F_Dev[dev]
    B_Get_Command -->|setup| G_Setup[setup]
    B_Get_Command -->|install| H_Install[install_deps]
    B_Get_Command -->|clean| I_Clean[clean]
    B_Get_Command -->|validate| J_Validate[validate_azure]
    B_Get_Command -->|help or none| K_Usage[usage]
    B_Get_Command -->|unknown| L_Unknown[log_error Unknown command + usage]

    C_Check --> M_End[Exit]
    D_Build --> M_End
    E_Test --> M_End
    F_Dev --> M_End
    G_Setup --> M_End
    H_Install --> M_End
    I_Clean --> M_End
    J_Validate --> M_End
    K_Usage --> M_End
    L_Unknown --> M_End

    subgraph Internal_Flows
        F_Dev --> D_Build
        F_Dev --> E_Test
        G_Setup --> H_Install
        G_Setup --> D_Build
    end
Loading

File-Level Changes

Change Details Files
Document dev container-based development workflow in the main README.
  • Add Development section describing dev container support and included tools.
  • Document how to open the repo in VS Code dev containers and GitHub Codespaces.
  • Link to the detailed dev container documentation in .devcontainer/README.md.
README.md
Standardize Azure CLI installation in the canary workflow to use the Python module invocation pattern for pip.
  • Replace direct pip3 invocation with python3 -m pip for installing the Azure CLI edge build in the canary workflow job.
.github/workflows/azure-login-canary.yml
Introduce a dev container helper script to streamline common development tasks.
  • Add bash-based dev.sh script with colored logging helpers and environment detection.
  • Implement commands for checks, build, test, setup, dependency installation, cleaning, and Azure configuration validation.
  • Provide a CLI-style usage/help interface for the script.
.devcontainer/dev.sh
Add detailed documentation for the dev container environment and workflow.
  • Describe included tools and VS Code / Codespaces quick start steps.
  • Document helper script usage, manual build/test commands, and troubleshooting tips (credentials, build, npm install).
  • Explain mounts and environment behavior to persist Azure credentials and customize the dev container.
.devcontainer/README.md
Provide example GitHub Workflows demonstrating dev container and Azure Login usage.
  • Add workflow examples that use devcontainers/ci@v0.3 to build and run the dev container in CI.
  • Show how to integrate azure/login@v2 and run Azure CLI commands in workflows.
  • Demonstrate validating the dev container setup and running the dev.sh helper script in CI.
.devcontainer/EXAMPLES.md

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Hey - I've found 1 issue, and left some high level feedback:

  • In .devcontainer/dev.sh, check_azure_cli calls az version --output tsv, but az version only supports JSON output; consider parsing the JSON (e.g., with jq) or using a simpler az version call to avoid relying on unsupported --output and brittle grep parsing.
  • The clean command in .devcontainer/dev.sh removes node_modules/ as well as lib/; you might want to separate dependency cleanup from build-artifact cleanup so clean does not unexpectedly drop installed dependencies for every use.
  • dev.sh uses grep -oP (PCRE) in check_azure_cli, which will fail on systems with non-GNU grep (e.g., macOS); consider a more portable approach or guarding this with a GNU-grep check if you expect the script to be run outside the dev container.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- In `.devcontainer/dev.sh`, `check_azure_cli` calls `az version --output tsv`, but `az version` only supports JSON output; consider parsing the JSON (e.g., with `jq`) or using a simpler `az version` call to avoid relying on unsupported `--output` and brittle `grep` parsing.
- The `clean` command in `.devcontainer/dev.sh` removes `node_modules/` as well as `lib/`; you might want to separate dependency cleanup from build-artifact cleanup so `clean` does not unexpectedly drop installed dependencies for every use.
- `dev.sh` uses `grep -oP` (PCRE) in `check_azure_cli`, which will fail on systems with non-GNU `grep` (e.g., macOS); consider a more portable approach or guarding this with a GNU-grep check if you expect the script to be run outside the dev container.

## Individual Comments

### Comment 1
<location path=".devcontainer/README.md" line_range="9" />
<code_context>
+
+- **Node.js 20** - JavaScript/TypeScript runtime
+- **Azure CLI** - Command-line tools for Azure
+- **PowerShell** - Cross-platform PowerShell for Azure PowerShell module
+- **GitHub CLI** - Command-line tools for GitHub
+- **GNU Core Utilities** - Standard Unix tools (bash, grep, sed, etc.)
</code_context>
<issue_to_address>
**suggestion (typo):** Consider using the plural "modules" for Azure PowerShell here.

This keeps the terminology consistent with your later reference to "Azure PowerShell modules."

```suggestion
- **PowerShell** - Cross-platform PowerShell for Azure PowerShell modules
```
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Comment thread .devcontainer/README.md

- **Node.js 20** - JavaScript/TypeScript runtime
- **Azure CLI** - Command-line tools for Azure
- **PowerShell** - Cross-platform PowerShell for Azure PowerShell module
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

suggestion (typo): Consider using the plural "modules" for Azure PowerShell here.

This keeps the terminology consistent with your later reference to "Azure PowerShell modules."

Suggested change
- **PowerShell** - Cross-platform PowerShell for Azure PowerShell module
- **PowerShell** - Cross-platform PowerShell for Azure PowerShell modules

@github-actions
Copy link
Copy Markdown

This PR is idle because it has been open for 14 days with no activity.

@github-actions github-actions Bot added idle and removed Stale labels Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants