Skip to content

Commit f8b8507

Browse files
authored
Merge pull request #2 from novanynx/novanynx-patch-1
Create security-scan.yml
2 parents 705268d + 79c54cc commit f8b8507

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: OpenGrep Triage and Remediation Prod
2+
3+
permissions:
4+
contents: read
5+
id-token: write
6+
7+
on:
8+
workflow_dispatch:
9+
10+
env:
11+
OPENGREP_VERSION: "v1.16.1"
12+
13+
jobs:
14+
opengrep-scan-and-process:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Download OpenGrep
23+
run: |
24+
curl -sL "https://github.com/opengrep/opengrep/releases/download/${OPENGREP_VERSION}/opengrep_manylinux_x86" -o opengrep
25+
chmod +x opengrep
26+
27+
- name: Run OpenGrep scan
28+
run: |
29+
./opengrep scan --sarif --sarif-output=opengrep-results.sarif --config auto . || true
30+
31+
- name: Upload SARIF as artifact
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: opengrep-sarif
35+
path: opengrep-results.sarif
36+
retention-days: 7
37+
38+
- name: AppSecAI Triage and Remediation
39+
uses: AppSecureAI/automation-action@v1
40+
with:
41+
file: opengrep-results.sarif

0 commit comments

Comments
 (0)