Skip to content

Commit dd34791

Browse files
author
Kusari Security Scanner
committed
Add Kusari security scan workflow
1 parent e585631 commit dd34791

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Kusari Security Scan
2+
3+
on:
4+
# Run on pull requests
5+
pull_request:
6+
types: [opened, synchronize, reopened]
7+
8+
# Run when triggered via API
9+
workflow_dispatch:
10+
inputs:
11+
pr_number:
12+
description: 'Pull request number'
13+
required: false
14+
sha:
15+
description: 'Commit SHA to analyze'
16+
required: false
17+
18+
permissions:
19+
contents: read
20+
pull-requests: write
21+
22+
jobs:
23+
security-scan:
24+
name: Run Security Scan
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Checkout code
28+
uses: actions/checkout@v4
29+
with:
30+
fetch-depth: 0
31+
# If triggered by workflow_dispatch with a SHA, use that SHA
32+
ref: ${{ github.event.inputs.sha || github.sha }}
33+
34+
- name: Run Security Scanner
35+
uses: Kusari-Sandbox/kusari-security-data@v1.0.0-beta1
36+
with:
37+
github-token: ${{ secrets.GITHUB_TOKEN }}
38+
39+
- name: Upload scan results as artifact
40+
uses: actions/upload-artifact@v4
41+
with:
42+
name: security-scan-results
43+
path: security-scan-results.json
44+
retention-days: 3

0 commit comments

Comments
 (0)