Repository navigation
WKS-2790 - Add Copilot dependency advisory AFTER_DOWNLOAD sample - #79
Merged
Merged
Conversation
Opts in per artifact via copilot.advisor.repo / copilot.advisor.repoBaseBranch properties: on first download of a tagged artifact, opens a GitHub issue in that repo and assigns it to GitHub Copilot's coding agent to vet the new dependency. Dedupe is tracked as a third artifact property (copilot.advisor.notified) rather than the worker's own state, which is capped at a handful of small key-value pairs and not a fit for tracking every artifact ever downloaded.
christophermiJfrog
approved these changes
Sep 29, 2026
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.
Summary
Adds a new
AFTER_DOWNLOADsample,samples/artifactory/AFTER_DOWNLOAD/copilot-dependency-advisory, demonstrating a GitHub Copilot integration pattern per WKS-2790.copilot.advisor.repo,copilot.advisor.repoBaseBranch) — an artifact missing either is a NOP. The worker never guesses a target GitHub repo from the download event.copilot-swe-agent[bot]) via its dedicated assignment endpoint, so Copilot autonomously investigates the new dependency.copilot.advisor.notified), written back after the issue is created — not the worker's owncontext.state, which is capped at a handful of small key-value pairs (10 items / 40-char keys / 250-char values by current platform default, no eviction) and isn't a fit for tracking every artifact ever downloaded.githubApiUrlandgithubApiVersionare configurable worker properties (for GitHub Enterprise Server deployments).Test plan
npx tsc --noEmitpassesnpm test— 11 passing Jest tests covering the opt-in gate, dedupe, issue creation, property-write and Copilot-assignment failure paths