Skip to content

Feature/devcontainerctl - #7

Merged
DevNiall merged 5 commits into
mainfrom
feature/devcontainerctl
Nov 8, 2025
Merged

Feature/devcontainerctl#7
DevNiall merged 5 commits into
mainfrom
feature/devcontainerctl

Conversation

@DevNiall

@DevNiall DevNiall commented Nov 8, 2025

Copy link
Copy Markdown
Contributor

This pull request introduces several enhancements to the devcontainer setup, focusing on improved user experience, automation, and documentation. The most significant changes include the addition of user setup scripts for streamlined deployment and management, expanded documentation detailing these scripts, and workflow improvements for disk space management and security scanning. There are also minor updates to extension handling and general documentation clarity.

User Setup & Automation Enhancements

  • Added new user setup scripts (devcontainerctl and setup.sh) in the scripts/ directory, enabling automated container lifecycle management (start, stop, update, etc.) and daily image sync via cron. These scripts simplify deployment, especially in constrained environments like the SDF TRE. [1] [2]
  • Updated documentation (README.md, DEVCONTAINER.md, SDF_TRE_SETUP.md) to provide detailed instructions on using the new setup scripts, including quick start guides, usage examples, and explanations of automated features like VS Code tag alignment and proxy inheritance. [1] [2] [3] [4] [5] [6]

Workflow & Build Improvements

  • Enhanced the GitHub Actions workflow (build-devcontainer.yml) by adding a disk cleanup step before running the security scan to prevent space issues, and fully enabling the Trivy security scan and result processing steps.

Documentation & Usability

  • Improved cross-referencing and clarity in documentation by linking to relevant files and sections, updating references to VS Code extensions, and providing more comprehensive setup and troubleshooting sections. [1] [2] [3] [4] [5] [6] [7] [8] [9]
  • Clarified and expanded the description of included features in both README.md and DEVCONTAINER.md, highlighting the new user setup scripts. [1] [2]

VS Code Extensions

  • Commented out the installation of the Continue.continue and openai.chatgpt extensions in .devcontainer/vscode-init/extensions-to-install.txt, TRE LLM service not yet discoverable. [1] [2]

General

  • Minor wording and formatting improvements throughout documentation for consistency and readability.

These changes collectively make the devcontainer easier to deploy, maintain, and use, especially in secure or restricted environments.

@github-actions

github-actions Bot commented Nov 8, 2025

Copy link
Copy Markdown

🔒 Trivy Security Scan Results

Status: ⚠️ Vulnerabilities found (see details in artifacts)
Vulnerabilities Found: 17 critical/high severity issues

⚠️ Action Required: Critical or high severity vulnerabilities detected.

Top 10 Critical/High Severity Vulnerabilities:

Type Package Vulnerability Severity Fixed Version
python-pkg Twisted CVE-2022-24801 CRITICAL 22.4.0
node-pkg grunt CVE-2020-7729 HIGH 1.3.0
node-pkg grunt CVE-2022-1537 HIGH 1.5.3
node-pkg npm CVE-2018-7408 HIGH 5.7.1
node-pkg npm CVE-2019-16775 HIGH 6.13.3
node-pkg npm CVE-2019-16776 HIGH 6.13.3
node-pkg npm CVE-2019-16777 HIGH 6.13.4
python-pkg Twisted CVE-2022-21716 HIGH 22.2.0

📊 Scan Details

  • Image: ghcr.io/smartdatafoundry/devcontainer
  • Scan Date: 2025-11-08 18:16:46 UTC
  • Total Vulnerabilities: 17

Action Run: view run
Trivy Report: view report

@github-actions

github-actions Bot commented Nov 8, 2025

Copy link
Copy Markdown

🔒 Trivy Security Scan Results

Status: ⚠️ Vulnerabilities found (see details in artifacts)
Vulnerabilities Found: 17 critical/high severity issues

⚠️ Action Required: Critical or high severity vulnerabilities detected.

Top 10 Critical/High Severity Vulnerabilities:

Type Package Vulnerability Severity Fixed Version
python-pkg Twisted CVE-2022-24801 CRITICAL 22.4.0
node-pkg grunt CVE-2020-7729 HIGH 1.3.0
node-pkg grunt CVE-2022-1537 HIGH 1.5.3
node-pkg npm CVE-2018-7408 HIGH 5.7.1
node-pkg npm CVE-2019-16775 HIGH 6.13.3
node-pkg npm CVE-2019-16776 HIGH 6.13.3
node-pkg npm CVE-2019-16777 HIGH 6.13.4
python-pkg Twisted CVE-2022-21716 HIGH 22.2.0

📊 Scan Details

  • Image: ghcr.io/smartdatafoundry/devcontainer
  • Scan Date: 2025-11-08 18:29:13 UTC
  • Total Vulnerabilities: 17

Action Run: view run
Trivy Report: view report

@DevNiall
DevNiall requested a review from Copilot November 8, 2025 18:39

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.

Pull Request Overview

This pull request adds automated setup and management scripts for deploying the devcontainer in SDF TRE environments, along with comprehensive documentation updates.

  • Introduces devcontainerctl script for container lifecycle management with automatic VS Code version alignment
  • Adds one-time setup script that configures PATH, symlinks, and daily cron jobs
  • Updates documentation across README, SDF_TRE_SETUP, and DEVCONTAINER to describe the new automated workflow
  • Enables previously commented-out security scanning in the build workflow
  • Removes AI assistant extensions (Continue, ChatGPT) from default installation list

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 20 comments.

Show a summary per file
File Description
scripts/devcontainerctl New container management script providing start/stop/restart/update commands with automatic image syncing
scripts/setup.sh New one-time setup script that creates symlinks, configures PATH, and sets up cron jobs
SDF_TRE_SETUP.md Added automated setup section, expanded troubleshooting, and updated documentation for script-based workflow
README.md Added quick setup guide with script usage, updated references to use markdown links
DEVCONTAINER.md Documented new setup scripts, added repository structure for scripts directory, converted file references to markdown links
.github/workflows/build-devcontainer.yml Added disk cleanup step and uncommented security scanning with result processing
.devcontainer/vscode-init/extensions-to-install.txt Commented out Continue and ChatGPT extensions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread scripts/devcontainerctl

get_latest_devcontainer() {
local rc="${1:-false}"

Copilot AI Nov 8, 2025

Copy link

Choose a reason for hiding this comment

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

[nitpick] This line contains trailing whitespace. Remove it for cleaner code.

Suggested change

Copilot uses AI. Check for mistakes.
Comment thread scripts/devcontainerctl Outdated
Comment thread scripts/devcontainerctl Outdated
Comment thread scripts/devcontainerctl Outdated
Comment thread scripts/devcontainerctl Outdated
Comment thread scripts/devcontainerctl
Comment thread scripts/devcontainerctl Outdated
Comment thread scripts/devcontainerctl Outdated
Comment thread scripts/devcontainerctl Outdated
Comment thread scripts/devcontainerctl

@DevNiall DevNiall left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Points adressed or dismissed

Comment thread scripts/devcontainerctl
Comment thread scripts/devcontainerctl Outdated
Comment thread scripts/devcontainerctl Outdated
Comment thread scripts/devcontainerctl
Comment thread scripts/devcontainerctl Outdated
…le naming; improve user feedback during updates
@github-actions

github-actions Bot commented Nov 8, 2025

Copy link
Copy Markdown

🔒 Trivy Security Scan Results

Status: ⚠️ Vulnerabilities found (see details in artifacts)
Vulnerabilities Found: 17 critical/high severity issues

⚠️ Action Required: Critical or high severity vulnerabilities detected.

Top 10 Critical/High Severity Vulnerabilities:

Type Package Vulnerability Severity Fixed Version
python-pkg Twisted CVE-2022-24801 CRITICAL 22.4.0
node-pkg grunt CVE-2020-7729 HIGH 1.3.0
node-pkg grunt CVE-2022-1537 HIGH 1.5.3
node-pkg npm CVE-2018-7408 HIGH 5.7.1
node-pkg npm CVE-2019-16775 HIGH 6.13.3
node-pkg npm CVE-2019-16776 HIGH 6.13.3
node-pkg npm CVE-2019-16777 HIGH 6.13.4
python-pkg Twisted CVE-2022-21716 HIGH 22.2.0

📊 Scan Details

  • Image: ghcr.io/smartdatafoundry/devcontainer
  • Scan Date: 2025-11-08 19:07:23 UTC
  • Total Vulnerabilities: 17

Action Run: view run
Trivy Report: view report

@DevNiall
DevNiall merged commit 2b14a13 into main Nov 8, 2025
1 check passed
@DevNiall
DevNiall deleted the feature/devcontainerctl branch November 8, 2025 19:13
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