Generate App Build, App Inspect Check and Splunk App Utilities
Version updated for VatsalJagani/splunk-app-action to version v4.
- This action is used across all versions by 16 repositories.
Go to the GitHub Marketplace to find the latest changes.
Release notes
v4
Run the user-defined commands in the context of your App’s root directory instead of Repo’s root directory. Refer to
Running User Defined Commands Before Generating the final App Buildfor more details.to_make_permission_changesparameter’s default value has been changed tofalse. Refer toAvoid File and Folder Permission Issue on Your App Buildfor more details.- Automatic file permission changes now also add executable permissions to the following file extensions,
.msi,.exe,.cmd,.bat, along with.sh.
- Automatic file permission changes now also add executable permissions to the following file extensions,
The input parameters
is_generate_buildandapp_build_pathhas been removed.
Upgrade Guide from v3 to v4
From
v4of thesplunk-app-action, your user-defined custom command (Refer toRunning User Defined Commands Before Generating the final App Buildsection) would run in the context of your App’s folder instead of the root folder.- So you need to change the code from this:
- uses: VatsalJagani/splunk-app-action@v3 env: SPLUNK_APP_ACTION_1: "rm -rf my_app/extra_test_folder" SPLUNK_APP_ACTION_2: "cat 'abc,123' >> my_app/lookups/my_custom_lookup.csv" with: app_dir: "my_app"- to
- uses: VatsalJagani/splunk-app-action@v3 env: SPLUNK_APP_ACTION_1: "rm -rf extra_test_folder" SPLUNK_APP_ACTION_2: "cat 'abc,123' >> lookups/my_custom_lookup.csv" with: app_dir: "my_app"- Because this command would now run in context of your App’s directory.
- So you need to change the code from this:
to_make_permission_changes- default value has been changed tofalsefromtrue. This means if you were to apply file and folder permission changes automatically, you have to explicitly add this parameter to your workflow. Refer toAvoid File and Folder Permission Issue on Your App Buildfor more details.The input parameters
is_generate_buildandapp_build_pathhave been removed from GitHub action fromv4onwards, hence if you are using them then migrate the action config properly before the version update.