Skip to content

feat: add shared PMG (Package Manager Guard) pre-step for supply chain protection#34672

Merged
pelikhan merged 3 commits into
mainfrom
copilot/create-shared-agentic-workflow-for-pmg
May 25, 2026
Merged

feat: add shared PMG (Package Manager Guard) pre-step for supply chain protection#34672
pelikhan merged 3 commits into
mainfrom
copilot/create-shared-agentic-workflow-for-pmg

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 25, 2026

Adds a reusable shared/pmg.md component that installs PMG via safedep/pmg@v1 in pre-steps:, providing transparent interception of npm/pip/poetry/yarn/uv installs to block malicious packages before execution (threat intel + dependency cooldown).

New shared component

.github/workflows/shared/pmg.md — single pre-steps: entry using safedep/pmg@v1. Import first to ensure shims are active before any steps: package installs.

Imported as first import in three workflows

Workflow Protected installs
hippo-embed.md npm install -g @xenova/transformers
agentic-token-audit.md pip install pandas matplotlib seaborn
dataflow-pr-discussion-dataset.md pip install open-dataflow

Usage

imports:
  - shared/pmg.md   # must be first
  - shared/other.md

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 AI requested a review from pelikhan May 25, 2026 15:22
@pelikhan
Copy link
Copy Markdown
Collaborator

@copilot merge main and recompile

Copilot AI and others added 2 commits May 25, 2026 15:43
…-agentic-workflow-for-pmg

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 25, 2026

@copilot merge main and recompile

Done — merged main and recompiled all three workflows. safedep/pmg@v1 is now SHA-pinned to 46cc70db535107183c9e752bb55d1d5c5f1a9290 in actions-lock.json.

@pelikhan pelikhan marked this pull request as ready for review May 25, 2026 15:55
Copilot AI review requested due to automatic review settings May 25, 2026 15:55
@pelikhan pelikhan merged commit 329e831 into main May 25, 2026
@pelikhan pelikhan deleted the copilot/create-shared-agentic-workflow-for-pmg branch May 25, 2026 15:55
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.md shared component that runs safedep/pmg@v1 as a pre-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:
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.

3 participants