Skip to content

fix code scanning alerts - #904

Open
tejaswin98 wants to merge 2 commits into
mainfrom
fix/code-scanning-alerts
Open

tejaswin98 wants to merge 2 commits into
mainfrom
fix/code-scanning-alerts

Conversation

@tejaswin98

Copy link
Copy Markdown
Contributor

Merge Checklist

  • The changes in the PR have been built and tested
  • Documentation has been updated to reflect the changes (no doc update needed)
  • Ready to merge

Description

Resolves Code Scanning findings by:

  • Upgrading golang.org/x/crypto from v0.55.0 to v0.56.0, resolving CVE-2026-78662 and CVE-2026-56855.
  • Updating the template customization script to handle expected YAML/file errors explicitly.
  • Validating the sudo executable and Image Composer Tool binary before invoking the build command.

Any Newly Introduced Dependencies

No new dependencies introduced.

Updated existing dependency:

  • golang.org/x/crypto to v0.56.0

How Has This Been Tested?

  • python3 -m py_compile .github/skills/image-composer-custom/scripts/customize-template.py
  • bandit -q .github/skills/image-composer-custom/scripts/customize-template.py
  • go test ./...

Note: go test ./... has one pre-existing failure in
internal/image/imageinspect/TestInspectSBOM_ReadsExt4InPlace, which also fails on unchanged main.

Copilot AI lite review requested due to automatic review settings September 22, 2026 17:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Executable checks, malformed-UTF-8 handling, and Go toolchain compatibility remain unresolved.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 3 Medium severity

Open (3)
What changed in this PR

This pull request addresses code-scanning findings and updates dependency and build-validation logic.

Changes:

  • Upgrades golang.org/x/crypto to v0.56.0.
  • Refreshes Go module checksums and metadata.
  • Improves template error handling and executable validation.
File Summary
go.sum Refreshes dependency checksums.
go.mod Updates Go and crypto dependency versions.
.github/​skills/​image-composer-custom/​scripts/​customize-template.py Adds error handling and build preflight validation.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/skills/image-composer-custom/scripts/customize-template.py Outdated
Comment thread .github/skills/image-composer-custom/scripts/customize-template.py Outdated
Comment thread go.mod
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