As MooS said, in this particular situation, you can use the category of $\mathcal{O}$-module to construct the morphism you seek. In general this is a good method because it leads to a morphism generally easier to construct and to handle.
But let us see the general method where we won't even assume that we are working with the category of sheaves and that the functor involved have an adjoint. So let $F:\mathcal{A}\rightarrow\mathcal{B}$ and $G:\mathcal{B}\rightarrow\mathcal{C}$ be left exact functor such that for every injective $I\in\mathcal{A}$ the object $F(I)$ is $G$-acyclic (ie $(R^iG)(F(I))=0$ for $i>0$). And let us construct a morphism $(R^iG)(F(X))\rightarrow R^i(GF)(X)$.
This is exactly your situation with $F=f_*$ and $G=\Gamma(Y,.)$ and $GF=\Gamma(X,.)$. If $I$ is an injective quasi-coherent sheaf, then it is flabby and so is $f_*I$, we deduce that $f_*I$ is $\Gamma(Y,.)$-acyclic.
Let $X\in \mathcal A$ be any object and $X\rightarrow I^.$ be an injective resolution. Let $F(X)\rightarrow F(I^.)$ be its image by $F$. We would like to construct an injective resolution $F(X)\rightarrow J^.$ together with a morphism $J^.\rightarrow F(I^.)$. (note that the morphism in your question goes in the wrong way). But we won't be able to do it in such a generality.
However, we can construct a quasi-isomophism $F(I^.)\overset\sim\rightarrow K^.$, an injective resolution $F(X)\rightarrow J^.$ and a morphism $J^.\rightarrow K^.$ inducing the identity on $H^0=F(X)$ (and this construction is unique up to homotopy).
The idea is to construct a bicomplex of injectives : start with the line $$0\rightarrow F(X)\rightarrow F(I^0)\rightarrow F(I^1)\rightarrow ...$$
Now for each object $F(I^i)$ in this line, construct an injective resolution $F(I^i)\rightarrow K^{.,i}$ together with morphism of injective resolution compatible with the differentials of this line. Such a bicomplex exists !
Now the first column is an injective resolution $F(X)\rightarrow J^.$. Seeing $J^.$ as a bicomplex concetrated in one column, you have a map of bicomplex $J^.\rightarrow K^{.,.}$. Taking the total complexes you get $J^.\rightarrow K^.:=\operatorname{Tot}K^{.,.}$. Similarly, seeing $F(I^.)$ as a bicomplex concentrated in one line, you have a morphism of bicomplexes $F(I^.)\rightarrow K^{.,.}$ and taking the total complexes you get $F(I^.)\rightarrow K^.$. This last morphism is a quasi-isomorphism since $F(I^.)\rightarrow K^{.,.}$ was a quasi-isomorphism.
And you are done ! Apply $G$ and you have :
$$ R^iG(F(X))=H^i(G(J^.))\rightarrow H^i(G(K^.))\overset{\sim}\leftarrow H^i(GF(I^.))=R^i(GF)(X)$$
In fact, this is how you construct the Grothendieck spectral sequence. The map you seek is in fact one of the boundary map.
Edit : I forgot to explain why $GF(I^.)\rightarrow G(K^.)$ is a quasi-isomorphism. As I said, $F(I^.)\rightarrow K^{.,.}$ is column-wise a quasi-isomorphism. But if we apply $G$, it remains true. This is because we assumed that $F(I)$ are $G$-acyclic. So $GF(I^.)\rightarrow GK^{.,.}$ is column-wise a quasi-isomorphism. Taking total complexes, $GF(I^.)\rightarrow \operatorname{Tot} GK^{.,.}=GK^.$ is a quasi-isomorphism.