Skip to content

Commit 754e385

Browse files
committed
feat: add SourceClear (SRCCLR) scan job to CI workflow
1 parent 844d07a commit 754e385

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: CodeQL and Lint
2-
32
on:
43
push:
54
branches: ["master"]
@@ -47,6 +46,24 @@ jobs:
4746
name: codeql-database
4847
path: ./.codeql
4948

49+
srclr:
50+
name: Run SourceClear (SRCCLR) Agent
51+
runs-on: ubuntu-latest
52+
needs: [analyze, lint]
53+
steps:
54+
- name: Checkout repository
55+
uses: actions/checkout@v4
56+
- name: Install SourceClear (SRCCLR) Agent
57+
run: |
58+
curl -sSL https://download.sourceclear.com/ci.sh | bash
59+
- name: Run SourceClear (SRCCLR) Scan
60+
run: ./srcclr scan --allow-dirty || true
61+
- name: Upload SRCCLR Report
62+
uses: actions/upload-artifact@v4
63+
with:
64+
name: srclr-report
65+
path: .srclr
66+
5067
lint:
5168
name: Run ESLint
5269
runs-on: ubuntu-latest

.github/workflows/srclr.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
srclr:
2+
name: Run SourceClear (SRCCLR) Agent
3+
runs-on: ubuntu-latest
4+
needs: [analyze, lint]
5+
steps:
6+
- name: Checkout repository
7+
uses: actions/checkout@v4
8+
- name: Install SourceClear (SRCCLR) Agent
9+
run: |
10+
curl -sSL https://download.sourceclear.com/ci.sh | bash
11+
- name: Run SourceClear (SRCCLR) Scan
12+
run: ./srcclr scan --allow-dirty || true
13+
- name: Upload SRCCLR Report
14+
uses: actions/upload-artifact@v4
15+
with:
16+
name: srclr-report
17+
path: .srclr

0 commit comments

Comments
 (0)