In order to verify effects of an action, API integration tests need a way to run jobs, see T231822.
The interface MediaWiki provides for this is Special:RunJobs, which requires the wiki and the caller to share a secret.
There are several options for sharing the secret:
- hard-code a well-known value for use by all CI runs.
- inject a new random value into MediaWiki and the API test framework, via an environment variable.
- have the config of both, MediaWiki and the API test framework, fetch the secret from docker's /run/secrets