Implement centralized file distribution service for organization repositories#6
Draft
Implement centralized file distribution service for organization repositories#6
Conversation
Copilot started work on behalf of
Marius Storhaug (MariusStorhaug)
February 19, 2026 09:52
View session
Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add file distribution service for organization repos
Implement centralized file distribution service for organization repositories
Feb 19, 2026
Marius Storhaug (MariusStorhaug)
requested changes
Feb 19, 2026
Repos/Action/Custom Instructions/.github/instructions/action.instructions.md
Outdated
Show resolved
Hide resolved
Repos/Module/Custom Instructions/.github/instructions/md.instructions.md
Show resolved
Hide resolved
Copilot started work on behalf of
Marius Storhaug (MariusStorhaug)
February 19, 2026 11:12
View session
Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
Author
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implementation Complete ✅
All acceptance criteria have been successfully implemented for the file distribution service MVP.
Recent Updates (Latest Commit)
Workflow Security & Best Practices:
actions/checkoutto SHA with v4.2.1 tag commentPSModule/GitHub-Scriptto SHA with main tag commentEnhanced File Content Based on Org Standards:
Completed Items
Repos/directory with type folders (Module, Action, Template, Workflow).github/workflows/sync-files.ymlwith schedule and workflow_dispatch triggersscripts/Sync-Files.ps1main script (485 lines)Implementation Summary
Total Changes: 19 files, 1,076 lines added (901 initial + 175 enhancements)
Key Components:
Technical Highlights:
Ready for Deployment
The implementation is production-ready pending:
Security Summary
✅ No vulnerabilities found in CodeQL scan
✅ No secrets or sensitive data committed
✅ Authentication handled securely via GitHub App
✅ Proper error handling prevents information leaks
✅ Actions pinned to specific SHAs for reproducibility
Original prompt
This section details on the original issue you should resolve
<issue_title>[MVP] File distribution service to organization repos</issue_title>
<issue_description>## Context
The PSModule organization maintains many repositories of the same type (modules, actions, reusable workflow). These repos share a large number of identical or near-identical files — linter configs, PSModule settings, copilot instructions, agent definitions, prompt files, GitHub Actions workflows, and more. Keeping these files in sync requires manual effort or ad-hoc scripting, which is error-prone and slow.
Solution overview
As an MVP, we want to create a central, convention-based mechanism for pushing shared files to repositories across the PSModule organization, allowing repos to subscribe to file sets. A scheduled GitHub Actions workflow, using the
PSModule/GitHub-Scriptaction that authenticates using the PSModule's Custo GitHub App, reads subscription preferences from repository custom properties (TypeandSubscribeTo), and copies the requested file sets to the repo from a two-level folder structure in this repo. The workflow clones each target repo, copies managed files, and creates a pull request if files have changed. The PR is created as ready for review with a static title, description, and label that follow the organization's maintenance conventions. A human reviewer then approves and merges the PR.Technical decisions
GitHubPSModulePSModule/GitHub-ScriptactionClientID/PrivateKeyinputsType(single-select) +SubscribeTo(multi-select)git status⚙️ [Maintenance]: Sync managed files,NoReleaselabel, and a description explaining the centralized syncDesign overview
Convention-based repository structure
The
Repos/directory uses a two-level hierarchy:Repos///. The first level groups by repo type; the second level holds the subscribable file sets. Each file set folder mimics the root of the target repository.Key rules:
Repos/= allowed values for theTypecustom property.✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.