diff --git a/.github/workflows/security-notifications-test-workflow.yml b/.github/workflows/security-notifications-test-workflow.yml index 78d14af4..f9e40368 100644 --- a/.github/workflows/security-notifications-test-workflow.yml +++ b/.github/workflows/security-notifications-test-workflow.yml @@ -80,9 +80,9 @@ jobs: if: env.imagePresent == 'true' run: | container_id=`docker ps -q` - plugins=`docker exec -it $container_id /usr/share/opensearch/bin/opensearch-plugin list` + plugins=`docker exec $container_id /usr/share/opensearch/bin/opensearch-plugin list` echo "plugins: $plugins" - security =`echo $plugins | grep -c opensearch-security` + security=`echo $plugins | grep opensearch-security | wc -l` if [ $security -gt 0 ] then echo "Security plugin is available"