-
Notifications
You must be signed in to change notification settings - Fork 125
Closed
Labels
enhancementNew feature or requestNew feature or requestsecuritySecurity-related changes or concernsSecurity-related changes or concerns
Description
Summary
Add enterprise artifact hub configuration to HVE Core, allowing organizations behind firewalls or air-gapped networks to redirect tool downloads, PowerShell module installs, and GitHub API calls to internal mirrors or artifact proxies. Consolidate GitHub API helpers into the shared SecurityHelpers module using the GraphQL API.
Changes
Enterprise Artifact Hub Configuration
- Add
HVE_*environment variables (HVE_GITHUB_RELEASES_URL,HVE_GITHUB_API_URL,HVE_PSGALLERY_REPOSITORY,HVE_PSGALLERY_SOURCE_URL,HVE_DEVCONTAINER_IMAGE) with public defaults - Parameterize
.devcontainer/devcontainer.jsonimage and remoteEnv block - Parameterize
.devcontainer/scripts/on-create.shdownload URLs and PSGallery configuration - Parameterize
.github/workflows/copilot-setup-steps.ymlwithvars.*repository variables - Add
.github/actionlint.yamlconfig-variable entries for the new vars - Add
docs/customization/enterprise-artifact-hub.mdconfiguration guide
GitHub API Consolidation
- Refactor
Test-GitHubTokenfrom REST/rate_limitto GraphQL/graphqlendpoint - Add
Get-GitHubApiBasehelper that readsHVE_GITHUB_API_URLwith public default - Consolidate API base URL usage across security scripts (
Test-SHAStaleness.ps1,Update-ActionSHAPinning.ps1,Test-DependencyPinning.ps1)
Test Updates
- Update
Test-GitHubTokentests for the new GraphQL response shape (Valid,Authenticated,RateLimit,Remaining,ResetAt,User,Message) - Add edge case tests: unauthenticated GraphQL access, low rate-limit warning threshold, malformed GraphQL response handling
Documentation Validation
- All
HVE_*variable cross-references inenterprise-artifact-hub.mdverified against actual usage indevcontainer.json,on-create.sh, andcopilot-setup-steps.yml
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestsecuritySecurity-related changes or concernsSecurity-related changes or concerns