You can greatly simplify the computations if you remove factors that you know have limit $1$. First, the derivative of $f(x)=(\cos x)^{\sin x}$ is obtained by $\log f(x)=\sin x\log\cos x$, so it is
$$
\frac{f'(x)}{f(x)}=\cos x\log\cos x-\frac{\sin^2x}{\cos x}=
\cos x(\log\cos x-\tan^2x)
$$
so after the first application of l'Hôpital you get
$$
\lim_{x\to0}f(x)\cos x\frac{\tan^2x-\log\cos x}{3x^2}
$$
and you can disregard $f(x)\cos x$, because it has limit $1$. Therefore you need
$$
\lim_{x\to0}\frac{\tan^2x-\log\cos x}{3x^2}=
\lim_{x\to0}\frac{2\tan x(1+\tan^2x)+\tan x}{6x}=
\lim_{x\to0}\frac{3\tan x+2\tan^3x}{6x}=\frac{1}{2}
$$
A different strategy is using Taylor expansions: you can use
$$
(\cos x)^{\sin x}=(\cos^2x)^{(\sin x)/2}=
(1-\sin^2x)^{\sin x/2}
$$
so you can rewrite your limit as
$$
\lim_{x\to0}\frac{1-(1-\sin^2x)^{(\sin x)/2}}{\sin^3x}\frac{\sin^3x}{x^3}
=
\lim_{t\to0}\frac{1-(1-t^2)^{t/2}}{t^3}
$$
because the second fraction has limit $1$ and you can do the substitution $t=\sin x$, which is bijective (and continuous) in a neighborhood of $0$.
Now
$$
(1-t^2)^{t/2}=\exp\left(\frac{t}{2}\log(1-t^2)\right)
=
1+\frac{t}{2}\log(1-t^2)+o(t^3)=1-\frac{t^3}{2}+o(t^3)
$$
and so you have
$$
\lim_{t\to0}\frac{1-1+t^3/2+o(t^3)}{t^3}=\frac{1}{2}
$$