feat: add shared PMG (Package Manager Guard) pre-step for supply chain protection#34672
Merged
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
feat: add shared PMG (Package Manager Guard) workflow
feat: add shared PMG (Package Manager Guard) pre-step for supply chain protection
May 25, 2026
Copilot created this pull request from a session on behalf of
pelikhan
May 25, 2026 15:22
View session
Collaborator
|
@copilot merge main and recompile |
…-agentic-workflow-for-pmg Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
Author
Done — merged main and recompiled all three workflows. |
pelikhan
approved these changes
May 25, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a reusable PMG (Package Manager Guard) shared import to introduce a standardized, workflow-wide pre-step intended to intercept package manager installs and block known-malicious dependencies before execution.
Changes:
- Added
.github/workflows/shared/pmg.mdshared component that runssafedep/pmg@v1as apre-steps:entry. - Imported the new shared component into three workflows to apply the guard broadly.
- Updated corresponding rendered lock workflows and the repository’s action pin registry to include
safedep/pmg@v1.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/shared/pmg.md | New shared import that installs PMG via pre-steps:. |
| .github/workflows/hippo-embed.md | Adds shared/pmg.md to imports. |
| .github/workflows/hippo-embed.lock.yml | Regenerated lock to include pinned safedep/pmg action + inserted PMG install step. |
| .github/workflows/dataflow-pr-discussion-dataset.md | Adds shared/pmg.md to imports. |
| .github/workflows/dataflow-pr-discussion-dataset.lock.yml | Regenerated lock to include pinned safedep/pmg action + inserted PMG install step. |
| .github/workflows/agentic-token-audit.md | Adds shared/pmg.md to imports. |
| .github/workflows/agentic-token-audit.lock.yml | Regenerated lock to include pinned safedep/pmg action + inserted PMG install step. |
| .github/aw/actions-lock.json | Adds pinned entry for safedep/pmg@v1. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 8/8 changed files
- Comments generated: 3
Comment on lines
+16
to
+21
| - **Transparent interception** — wraps the package managers you already use (no workflow changes) | ||
|
|
||
| ## Usage | ||
|
|
||
| Add as the **first** `imports:` entry in any workflow that installs third-party packages so | ||
| PMG's shims are in place before any `steps:` package installs run: |
Comment on lines
+72
to
+73
| imports: | ||
| - shared/pmg.md |
Comment on lines
18
to
22
| imports: | ||
| - shared/pmg.md | ||
| - uses: shared/discussions-data-fetch.md | ||
| - uses: shared/repo-memory-standard.md | ||
| with: |
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.
Adds a reusable
shared/pmg.mdcomponent that installs PMG viasafedep/pmg@v1inpre-steps:, providing transparent interception ofnpm/pip/poetry/yarn/uvinstalls to block malicious packages before execution (threat intel + dependency cooldown).New shared component
.github/workflows/shared/pmg.md— singlepre-steps:entry usingsafedep/pmg@v1. Import first to ensure shims are active before anysteps:package installs.Imported as first import in three workflows
hippo-embed.mdnpm install -g @xenova/transformersagentic-token-audit.mdpip install pandas matplotlib seaborndataflow-pr-discussion-dataset.mdpip install open-dataflowUsage