vatsaljagani/Generate App Build, App Inspect Check and Splunk App Utilities

Automatically generate Splunk App/Add-on builds, and run app-inspect checks. Optionally add common Splunk App utilities.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
app_dirProvide app directory inside your repository. Do not provide a value if the repo's root directory itself is the app directory.no.
to_make_permission_changesWhether to apply file and folder permission changes according to Splunk App Inspect expectation before generating the build.nofalse
use_ucc_genUse ucc-gen command to generate the build for Add-ons. The 'app_dir' folder must have a sub-folder named 'package' and a file named 'globalConfig.json' for this to work.nofalse
is_remove_not_allowed_executables_from_libRemove files with mimetype application/x-executable or application/x-sharedlib from UCC build output lib/ folder before packaging.nofalse
python_requirements_filePath to the requirements.txt file for Python dependency management. Path is relative to the app_dir. When provided, dependencies will be installed before generating the build. This allows using GitHub Dependabot for automatic dependency updates.no""
splunk_python_versionPython version to target when installing dependencies from python_requirements_file. Should match the Python version used by the Splunk platform (default: 3.13).no3.13
is_app_inspect_checkWhether to perform the Splunk app-inspect checks or not. This would include cloud-inspect checks as well.notrue
splunkbase_usernameUsername required to call the Splunkbase API for App-Inspect. Required when is_app_inspect_check is set to true.no
splunkbase_passwordPassword required to call the Splunkbase API for App-Inspect. Required when is_app_inspect_check is set to true. Strongly recommend to use via GitHub secrets only and specify like `{{secrets.MY_SPLUNK_PASSWORD}}`.no
local_app_inspectUse local Splunk App Inspect validation with splunk-appinspect Python library instead of the Splunkbase API. This is faster but may not be as up-to-date as the Splunkbase API. When enabled, splunkbase_username and splunkbase_password are not required.nofalse
fail_onControl when the action should fail based on AppInspect results. Options: 'errors' (fail on errors only), 'warnings' (fail on warnings or errors), 'none' (never fail based on results).noerrors
app_utilitiesAdd comma separated list of utilities to use. You need to enable read and write permission for workflow to create Pull Requests. Valid options: whats_in_the_app, logger, common_js_utilities, ucc_additional_packagingno""
my_github_tokenGitHub token to create pull requests for app utilities. OPTIONAL when workflow has 'contents: write' and 'pull-requests: write' permissions - the action will automatically use the workflow's GITHUB_TOKEN. Only needed if you want to use a Personal Access Token (PAT) instead.no""
logger_log_files_prefixLog files prefix. Only required for logger utility.noNONE
logger_sourcetypeSourcetype for the internal app logs. Required only for logger utility.noNONE
namedescription
build_pathFull path to the generated build artifact (.tgz file)
artifact_nameName of the generated build artifact (e.g., my_app_1.0.0_1.tgz)
app_package_idThe Splunk app package ID extracted from app.conf or globalConfig.json
app_versionThe app version number extracted from app.conf or globalConfig.json
app_build_numberThe app build number extracted from app.conf
app_inspect_statusStatus of app-inspect check (Passed, Warning, Failure, Error, Timed-out, Exception, Skipped, or Not Run)
cloud_inspect_statusStatus of cloud-inspect check (Passed, Warning, Failure, Error, Timed-out, Exception, Skipped, or Not Run)
ssai_inspect_statusStatus of SSAI-inspect check (Passed, Warning, Failure, Error, Timed-out, Exception, Skipped, or Not Run)