sharing: Use g_auto for variables

3 jobs for sharing-g-auto in 3 minutes and 10 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Build
passed #41005
build

00:01:48

 
  Test
passed #41006
test

00:01:21

 
  Delivery
manual #41007
allowed to fail manual
packaging