Project variables not available inside services
Release notes
Problem to solve
Project variables are not available inside of services. When I try to access a project variable inside of a service, it's not available. When I try to expand a project variable inside of a service variable it evaluates to an empty string.
A workaround I found is to define a global variable with the contents of the project variable then use that inside of a service:
variables:
ENCRYPTION_KEY: $RAILS_MASTER_KEY
dast:
services:
- name: ...
alias: app
variables:
RAILS_MASTER_KEY: $ENCRYPTION_KEY
Proposal
Make project variables available inside of services.