Add AppInspect CI stage #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: | | |
| 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 |