In my pipeline, I’m using encrypted environment variables to set secrets that can only be decrypted by the agents. That’s been working just fine, but since a couple of weeks/months I’ve been having issues with rebuilds. Yes, initial builds work perfectly fine, but as soon as I click the
Rebuild button in the Buildkite UI I get the following error:
FATAL Couldn’t upload the “pipeline.yml” pipeline. Refusing to upload pipeline containing the value interpolated from the “SECRET_CODECOV_TOKEN” environment variable. Ensure your pipeline does not include secret values or interpolated secret values.
Error: The command exited with status 1
But I’m not actually interpolating this value? Even if I were, that’s perfectly fine, so I don’t get why it started failing because of that (only during rebuilds, at that).