Skip to content

Chore: [AEA-0000] - bump dev container and handle zizmor not existing#140

Merged
anthony-nhs merged 1 commit intomainfrom
new_dev_container
Apr 16, 2026
Merged

Chore: [AEA-0000] - bump dev container and handle zizmor not existing#140
anthony-nhs merged 1 commit intomainfrom
new_dev_container

Conversation

@anthony-nhs
Copy link
Copy Markdown
Contributor

Summary

  • Routine Change

Details

bump dev container
handle zizmor binary not existing

Copilot AI review requested due to automatic review settings April 16, 2026 18:29
Copy link
Copy Markdown

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

Updates the devcontainer image version and makes the devcontainer quality-checks workflow resilient to missing zizmor in the container image.

Changes:

  • Bump devcontainer base image version from v1.4.4 to v1.4.8.
  • Guard the workflow step that copies zizmor into /usr/local/bin so it doesn’t fail when the binary is absent.

Reviewed changes

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

File Description
.github/workflows/quality-checks-devcontainer.yml Adds a conditional check before copying the zizmor binary to avoid failing when it’s not present.
.devcontainer/devcontainer.json Updates the devcontainer build arg IMAGE_VERSION to v1.4.8.

Comment on lines +52 to +53
else
echo "zizmor not found at /home/vscode/.local/bin/zizmor; skipping copy"
Copy link

Copilot AI Apr 16, 2026

Choose a reason for hiding this comment

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

The new guard prevents the copy step from failing when zizmor is missing, but the workflow still runs make zizmor unconditionally later. If the binary truly isn’t present in the container, the job will still fail at the Run zizmor step. Consider setting an env/output flag here and using it to conditionally run the zizmor step (or installing zizmor when missing).

Suggested change
else
echo "zizmor not found at /home/vscode/.local/bin/zizmor; skipping copy"
elif command -v zizmor >/dev/null 2>&1; then
echo "zizmor already available on PATH; no copy required"
elif command -v cargo >/dev/null 2>&1; then
cargo install --root "$HOME/.local" zizmor
sudo cp "$HOME/.local/bin/zizmor" /usr/local/bin/zizmor
else
echo "zizmor is not available in the container and could not be installed automatically" >&2
exit 1

Copilot uses AI. Check for mistakes.
@sonarqubecloud
Copy link
Copy Markdown

@anthony-nhs anthony-nhs merged commit 8399c1f into main Apr 16, 2026
15 checks passed
@anthony-nhs anthony-nhs deleted the new_dev_container branch April 16, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants