add skills security check and fix existing vulnerability - #12
Closed
ganeshdipdumbare wants to merge 8 commits into
Closed
add skills security check and fix existing vulnerability#12ganeshdipdumbare wants to merge 8 commits into
ganeshdipdumbare wants to merge 8 commits into
Conversation
ganeshdipdumbare
marked this pull request as ready for review
March 16, 2026 10:20
ganeshdipdumbare
marked this pull request as draft
March 16, 2026 10:21
Contributor
There was a problem hiding this comment.
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 Checksworkflow that runsagentaudit scanvianpx. - 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 |
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.
No description provided.