-
Notifications
You must be signed in to change notification settings - Fork 567
NO-JIRA: test ai-sbom plugin and verify plugin loading #8614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -55,7 +55,7 @@ jobs: | |||||
| run: | | ||||||
| git clone --depth 1 https://github.com/openshift-eng/ai-helpers.git /tmp/ai-helpers | ||||||
| mkdir -p "$HOME/.claude/plugins" | ||||||
| printf '%s\n' '{"enabledPlugins":{"hello-world@ai-helpers":true,"jira@ai-helpers":true,"ci@ai-helpers":true}}' > "$HOME/.claude/settings.json" | ||||||
| printf '%s\n' '{"enabledPlugins":{"hello-world@ai-helpers":true,"ai-sbom@ai-helpers":true,"jira@ai-helpers":true,"ci@ai-helpers":true}}' > "$HOME/.claude/settings.json" | ||||||
| printf '%s\n' '{"ai-helpers":{"source":{"source":"directory","path":"/tmp/ai-helpers"},"installLocation":"/tmp/ai-helpers","lastUpdated":"2025-10-27T12:00:00.000Z"}}' > "$HOME/.claude/plugins/known_marketplaces.json" | ||||||
|
|
||||||
| - name: Test Claude Code | ||||||
|
|
@@ -65,4 +65,11 @@ jobs: | |||||
| ANTHROPIC_VERTEX_PROJECT_ID: hosted-control-planes | ||||||
| run: | | ||||||
| claude --version | ||||||
| claude -p "/hello-world:echo HyperShift" --max-turns 1 | ||||||
| claude -p "Generate an AI SBOM for this session." --model claude-opus-4-6 --max-turns 1 | tee /tmp/claude-output.txt | ||||||
| if grep -qi "ai-assisted\|ai.sbom\|sbom" /tmp/claude-output.txt; then | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tighten the success check to a plugin-only marker. Including bare Suggested fix- if grep -qi "ai-assisted\|ai.sbom\|sbom" /tmp/claude-output.txt; then
+ if grep -qi "ai-assisted" /tmp/claude-output.txt; then📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| echo "Plugin verified: ai-sbom plugin executed successfully" | ||||||
| else | ||||||
| echo "ERROR: ai-sbom plugin output not detected" | ||||||
| cat /tmp/claude-output.txt | ||||||
| exit 1 | ||||||
|
Comment on lines
+68
to
+74
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't run Claude on PR-head contents with WIF creds in scope. On As per coding guidelines, "No secrets in logs; mask sensitive outputs" and "Agentic CI actions: audit for prompt injection via issue/PR title/body flowing into LLM prompts". 🤖 Prompt for AI Agents |
||||||
| fi | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pin
ai-helpersto an immutable commit.Line 56 clones the marketplace from the moving default branch, so this trusted workflow can start executing new plugin code without any change in this repo. Please pin the checkout to a specific commit SHA and update it deliberately.
Suggested hardening
🤖 Prompt for AI Agents