Skip to content

add skills security check and fix existing vulnerability - #12

Closed
ganeshdipdumbare wants to merge 8 commits into
mainfrom
fix-skills-security-check
Closed

add skills security check and fix existing vulnerability#12
ganeshdipdumbare wants to merge 8 commits into
mainfrom
fix-skills-security-check

Conversation

@ganeshdipdumbare

Copy link
Copy Markdown
Contributor

No description provided.

@ganeshdipdumbare
ganeshdipdumbare marked this pull request as ready for review March 16, 2026 10:20
Copilot AI review requested due to automatic review settings March 16, 2026 10:20
@ganeshdipdumbare
ganeshdipdumbare marked this pull request as draft March 16, 2026 10:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 GitHub Actions workflow to run AgentAudit security scans in CI for pushes to main/master and for pull requests, and to publish results in the build summary/artifacts.

Changes:

  • Introduce a new Security Checks workflow that runs agentaudit scan via npx.
  • Upload scan results as a workflow artifact and surface JSON output in the step summary.
  • Fail the job when high/critical findings are detected (with path-based exclusions).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

- name: Scan with AgentAudit CLI
run: |
npx agentaudit scan \
${{ github.server_url }}/${{ github.repository }} \
Comment on lines +17 to +23
npx agentaudit scan \
${{ github.server_url }}/${{ github.repository }} \
--json --quiet \
| tee results.json \
|| true # capture results even when findings are detected

- name: Display scan summary
Comment on lines +18 to +41
${{ github.server_url }}/${{ github.repository }} \
--json --quiet \
| tee results.json \
|| true # capture results even when findings are detected

- name: Display scan summary
if: always()
run: |
if [ -f results.json ]; then
echo "### AgentAudit Scan Results" >> $GITHUB_STEP_SUMMARY
echo '```json' >> $GITHUB_STEP_SUMMARY
cat results.json >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
fi

- name: Fail on high/critical findings
run: |
COUNT=$(jq '[.findings[]? | select(.file | startswith("evals/") | not)] | length' results.json)
if [ "$COUNT" -gt 0 ]; then
echo "❌ $COUNT finding(s) detected."
exit 1
fi
echo "✅ No findings."

Comment on lines +1 to +15
name: Security Checks

on:
push:
branches: [main, master]
workflow_dispatch:

jobs:
agentaudit:
name: AgentAudit — AI Security Scan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Scan with AgentAudit CLI
Comment on lines +1 to +13
name: Security Checks

on:
push:
branches: [main, master]
workflow_dispatch:

jobs:
agentaudit:
name: AgentAudit — AI Security Scan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
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