render pdf from quarto with variables inside yaml

this is my minimal reproducible example

the YAML of my quarto document

---
format:
   pdf:
     include-in-header: header.tex
---
# par

the content of the file "header.tex"

% Use the KOMA-Script native header package
\usepackage[headsepline= 0.01pt]{scrlayer-scrpage} 
\clearpairofpagestyles

% Set up your running header
\setkomafont{pagehead}{\normalfont\fontsize{8}{10}\selectfont\itshape}
\cohead{author name - project title}

Now I would like to set two variables inside yaml, ideally something like "myname" and "myproject", to be passed into the file header.tex and rendered as "autor name" and "project title" in my final customised pdf (output document).

I've been trying different solutions and dirty workarounds but none of them seem to work properly.
I would like to keep the solution DRY so that to specify just once the content of the variables in the yaml.
Any help for sorting out this headache?

Thank you