Runtime error when running in AWS with S3 Cache: "ERROR: error while generating S3 pre-signed URL error=unsupported method: HEAD"
We are experiencing the Runtime Error "ERROR: error while generating S3 pre-signed URL error=unsupported method: HEAD" in our gitlab Runner, running on AWS and using S3 for Caching.
I did a short peek into the code, and it seems the error is created [here](https://gitlab.com/gitlab-org/gitlab-runner/-/blob/main/cache/s3v2/s3.go?ref_type=heads#L186).
The `PresignURL` function of s3Client does not support HEAD method when generating Pre-Signed URLs.
But, since this [commit](https://gitlab.com/gitlab-org/gitlab-runner/-/commit/826a55511c078154e01f0652ae44d1b1c53d2f63)
It seems, that a presigned URL for HEAD operations is requested [here](https://gitlab.com/gitlab-org/gitlab-runner/-/commit/826a55511c078154e01f0652ae44d1b1c53d2f63#line_968cddea6_A1483).
I guess the implementation for the HEAD case is just missing in s3.go?
issue