@@ -48,12 +48,19 @@ jobs:
4848 with :
4949 node-version : 20.11.1
5050
51+ - name : Read App Info
52+ id : app
53+ run : |
54+ app_id=$(cat splunk-*/app.manifest | jq -r '.info.id.name')
55+ echo "app_id=${app_id}" >> $GITHUB_OUTPUT
56+ working-directory : ./packages
57+
5158 - name : Copy app to service container and validate
5259 # NOTE using volume mapping to add the app to the container will NOT work since checkout hasn't happened yet
5360 run : |
54- docker cp packages/${{ needs.slim-validate .outputs.app_id }} ${{ job.services.splunk.id }}:/opt/splunk/etc/apps/${{ needs.slim-validate .outputs.app_id }}
61+ docker cp packages/${{ steps.app .outputs.app_id }} ${{ job.services.splunk.id }}:/opt/splunk/etc/apps/${{ steps.app .outputs.app_id }}
5562 docker exec -i ${{ job.services.splunk.id }} ls -a /opt/splunk/etc/apps
56- docker exec -i ${{ job.services.splunk.id }} ls -a /opt/splunk/etc/apps/${{ needs.slim-validate .outputs.app_id }}
63+ docker exec -i ${{ job.services.splunk.id }} ls -a /opt/splunk/etc/apps/${{ steps.app .outputs.app_id }}
5764
5865 - name : Disable SPL safeguards for all commands
5966 run : |
@@ -68,23 +75,13 @@ jobs:
6875 - name : Restart instance
6976 run : |
7077 curl -k -u admin:password https://localhost:8089/services/server/control/restart -X POST
71- # curl -k -u admin:password https://$SPLUNK_IP:8089/services/server/control/restart -X POST
7278 sleep 30
7379
7480 - name : Configure MLTK permissions
7581 run : |
7682 curl --retry-delay 5 --retry 5 -f -k -u admin:password https://localhost:8089/services/apps/local/Splunk_ML_Toolkit/acl -d sharing=global -d owner=nobody -X POST
77- # curl --retry-delay 5 --retry 5 -f -k -u admin:password https://$SPLUNK_IP:8089/services/apps/local/Splunk_ML_Toolkit/acl -d sharing=global -d owner=nobody -X POST
7883 echo "Check MLTK permissions"
7984 curl -k -u admin:password https://localhost:8089/services/apps/local/Splunk_ML_Toolkit/acl?output_mode=json | jq -r '.entry | .[].acl.sharing'
80- # curl -k -u admin:password https://$SPLUNK_IP:8089/services/apps/local/Splunk_ML_Toolkit/acl?output_mode=json | jq -r '.entry | .[].acl.sharing'
81-
82- # - name: Tests execution prep
83- # run: |
84- # echo "Removing package-lock to avoid issues with splunk artifactory"
85- # cd test
86- # rm -rf package-lock.json
87- # npm install
8885
8986 - name : Cypress run
9087 uses : cypress-io/github-action@v6
0 commit comments