Skip to content

WKS-2792 - Add OpenAI download risk advisor AFTER_DOWNLOAD sample - #78

Merged
ehl-jf merged 1 commit into
mainfrom
feature/WKS-2792-openai-after-download-sample
Oct 1, 2026
Merged

ehl-jf merged 1 commit into
mainfrom
feature/WKS-2792-openai-after-download-sample

Conversation

@ehl-jf

@ehl-jf ehl-jf commented Sep 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds samples/artifactory/AFTER_DOWNLOAD/openai-download-risk-advisor: an AFTER_DOWNLOAD worker that looks up an artifact's existing Xray scan result and, if issues/violations are found, asks OpenAI's Chat Completions API to turn the raw counts into a short plain-English risk summary posted to Slack (falls back to raw stats if OpenAI/Slack aren't configured).
  • Mirrors the structure of the existing ai-download-risk-advisor (Claude/WKS-2791) sample, swapped to OpenAI (OpenAiApiKey secret, gpt-4o-mini default model, Bearer auth).

Test plan

  • npm test — 7/7 unit tests pass
  • npx tsc --noEmit — no type errors

@ehl-jf
ehl-jf merged commit d57ed00 into main Oct 1, 2026
1 check passed
@ehl-jf
ehl-jf deleted the feature/WKS-2792-openai-after-download-sample branch October 1, 2026 07:43
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.

2 participants