Skip to content

Add AppInspect CI stage #2

Add AppInspect CI stage

Add AppInspect CI stage #2

Workflow file for this run

name: Validate SDK with Splunk AppInspect
on: [ pull_request ]
env:
PYTHON_VERSION: 3.13
jobs:
appinspect:
runs-on: ubuntu-latest
permissions:
id-token: write
environment:
name: splunk-test-pypi
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- uses: ./.github/actions/setup-sdk-environment
with:
python-version: ${{ env.PYTHON_VERSION }}
deps-group: lint
- name: Install splunk-appinspect dependencies
run: sudo apt-get install -y libmagic1
- name: Install splunk-appinspect
run: uv tool install --no-config splunk-appinspect
- name: Copy splunklib to a test app and package it as a mock app
run: |
mkdir -p tests/system/test_apps/generating_app/bin/lib/splunklib
cp -r splunklib/ tests/system/test_apps/generating_app/bin/lib/splunklib
tar -czf mock_app.tgz -C tests/system/test_apps generating_app
- name: Validate mock app with splunk-appinspect
run: splunk-appinspect inspect appinspect_target.tgz --included-tags cloud