Service health check error message
When running the example out of the box on the GitLab.com instance runners, a red error message appears in the job log saying FATAL: No HOST or PORT found related to the service health check.
The API scan still works, but the message is potentially confusing to end users and it would be helpful to demonstrate how to prevent it.
I tried a few different approaches in a fork (pasted below) but can't figure out how to get the error message to disappear.
api_security:
services:
- name: $TARGET_IMAGE
alias: target
variables:
APISEC_POSTMAN_COLLECTION: postman_collection.json
APISEC_TARGET_URL: http://target:7777
HEALTHCHECK_DISABLE: true
api_security:
services:
- name: $TARGET_IMAGE
alias: target
variables:
APISEC_POSTMAN_COLLECTION: postman_collection.json
APISEC_TARGET_URL: http://target:7777
HEALTHCHECK_TCP_PORT: 7777
api_security:
services:
- name: $TARGET_IMAGE
alias: target
variables:
HEALTHCHECK_TCP_PORT: 7777
api_security:
services:
- name: $TARGET_IMAGE
alias: target
variables:
HEALTHCHECK_TCP_PORT: "7777"
