Setting a known commit ID in the CTest Update Step for source tarballs

Hi,

One of the pipelines in our CI downloads a source tarball of the master branch (generated via git archive) and extracts the top commit hash from it. Because it’s a tarball, there is no actual .git directory present.

How can I configure the CTest Update Step to simply set the revision to this known commit ID?

I tried setting the CTEST_UPDATE_VERSION_OVERRIDE variable, but that approach doesn’t seem to work. Does anyone know the proper way to handle this?