Skip to content

Commit c846a0b

Browse files
Merge pull request #3 from OpenCTI-Platform/v1.0-ucc
First V1.0 merge
2 parents 4ae7fec + cfc515c commit c846a0b

33 files changed

+3848
-1
lines changed

.github/img/addon_settings.png

99.4 KB
Loading
170 KB
Loading
58.9 KB
Loading

.github/workflows/main.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: build-test-release
2+
3+
on: push
4+
5+
jobs:
6+
7+
build:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v2
13+
14+
- name: Create subfolder
15+
run: mkdir my-package
16+
17+
- name: Install UCC
18+
run: |
19+
pip install splunk-add-on-ucc-framework
20+
21+
- name: Build an app using UCC
22+
run: ucc-gen build --source TA-opencti-for-splunk-enterprise/package
23+
24+
- name: Create tmp folder
25+
run: mkdir app-dir
26+
27+
- name: Create package
28+
run: ucc-gen package --path output/TA-opencti-for-splunk-enterprise -o app-dir/
29+
30+
- name: Upload package
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: my-package
34+
path: app-dir/
35+
36+
run-appinspect-api:
37+
needs: build
38+
runs-on: ubuntu-latest
39+
steps:
40+
- uses: actions/checkout@v3
41+
- uses: actions/download-artifact@v4
42+
with:
43+
name: my-package
44+
path: app-dir/
45+
- name: appinspect-api
46+
uses: splunk/appinspect-api-action@v3.0
47+
with:
48+
username: ${{ secrets.SPL_COM_USER }}
49+
password: ${{ secrets.SPL_COM_PASSWORD }}
50+
app_path: app-dir/
51+
included_tags: "cloud,self-service"
52+
- uses: actions/upload-artifact@v4
53+
if: always()
54+
with:
55+
name: appinspect-api-html-report
56+
path: AppInspect_response.html

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**/.idea/*
2+
__pycache__/
3+
4+
# Splunk local meta file
5+
local.meta
6+
7+
# Splunk local folder
8+
local
9+
10+
# Splunk output package
11+
output
12+
13+
.idea/
14+
15+
venv/
16+
17+
.DS_Store

README.md

Lines changed: 335 additions & 1 deletion
Large diffs are not rendered by default.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# TA-opencti-for-splunk-enterprise

0 commit comments

Comments
 (0)