Skip to content

Commit 93e8da6

Browse files
committed
Add appinspect stage
1 parent 95604cb commit 93e8da6

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/appinspect.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Validate SDK with Splunk AppInspect
2+
on:
3+
push:
4+
branches: [ pull_request ]
5+
6+
env:
7+
PYTHON_VERSION: 3.13
8+
9+
jobs:
10+
appinspect:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
id-token: write
14+
environment:
15+
name: splunk-test-pypi
16+
steps:
17+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
18+
- uses: ./.github/actions/setup-sdk-environment
19+
with:
20+
python-version: ${{ env.PYTHON_VERSION }}
21+
deps-group: lint
22+
- name: Install splunk-appinspect dependencies
23+
run: sudo apt-get install -y libmagic1
24+
- name: Install splunk-appinspect
25+
run: uv tool install --no-config splunk-appinspect
26+
- name: Copy splunklib to a test app and package it as a mock app
27+
run: |
28+
cp -r splunklib/ tests/system/test_apps/generating_app/bin/lib/splunklib
29+
tar -czf mock_app.tgz -C tests/system/test_apps generating_app
30+
- name: Validate mock app with splunk-appinspect
31+
run: splunk-appinspect inspect appinspect_target.tgz --included-tags cloud

0 commit comments

Comments
 (0)