Skip to content

Commit 8adb005

Browse files
fix GH actions workflows
1 parent eb90770 commit 8adb005

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

.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+
pip install splunk-packaging-toolkit
21+
22+
- name: Build an app using UCC
23+
run: ucc-gen build --source TA-opencti-add-on
24+
25+
- name: Create tmp folder
26+
run: mkdir app-dir
27+
28+
- name: Create package
29+
run: ucc-gen package --path output/TA-opencti-add-on -o app-dir/
30+
31+
- name: Upload package
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: my-package
35+
path: app-dir/
36+
37+
run-appinspect-api:
38+
needs: build
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v3
42+
- uses: actions/download-artifact@v4
43+
with:
44+
name: my-package
45+
path: app-dir/
46+
- name: appinspect-api
47+
uses: splunk/appinspect-api-action@v3.0
48+
with:
49+
username: ${{ secrets.SPL_COM_USER }}
50+
password: ${{ secrets.SPL_COM_PASSWORD }}
51+
app_path: app-dir/
52+
- uses: actions/upload-artifact@v4
53+
if: always()
54+
with:
55+
name: appinspect-api-html-report
56+
path: AppInspect_response.html

0 commit comments

Comments
 (0)