When testing the (upcoming) GitLab v17.1 (Debian 11/Bullseye based) release, I noticed this message in the log:
ffi-libarchive could not be loaded, libarchive is probably not installed on system, archive_file will not be available
It doesn't seem to be system critical, so I'm not going to rebuild it (mostly because it's a PITA). However, to provide that, the dependency can be installed like this:
apt install -y libarchive13