I've camped at both locations over 20x each and have always kept my tent zipped up while gone. With no food inside. I was taking a nap once when the tent next to me had a major screeching event go on. Turns out a juvenile marmot most likely entered the front open part of the tent and went to the back where the sun was beating down and tried to exit. Two other large marmots were trying to get in by biting a hole through the tent. The little guy finally was able to exit with half eaten wrapped twinkie. The big guys then chased after the little guy. I looked in the front of the tent and it was full of wrappers. No bear can in sight.
I keep my food in my bear can outside my tent and well away from it. I try to keep it clean. But, I have seen marmots inspect my bearikade scout and try to push it over several times. I've parked my backpack at trail crest several times and crossed my fingers with my bear can in the bottom of the pack. However, back in 2014, the pack next to mine was ripped open at the base and a kit of meds and bandaides were strewn all over. Ever since it has made me a bit nervous when leaving my pack there, but I still do it. I do this when visiting the summit and then heading north on JMT.
On the JMT, I've had more problems with bold chipmunks that have run up and grabbed part of my sandwich fixings while I am making them.They can be annoyingly quick. I've also caught mice licking the salt of my back pack. I tend to sweat a lot and leave an obvious white salt zone on my pack. So, now I try and remember to wipe it off before hitting the sack. I'm a light sleeper and when cowboy camping almost anything wakes me up.
Bears at the portal have been more of an issue. While waiting for my ride in the wee hours, I've seen guys drop their packs next to their cars late at night or very early in the morning and then go use the restroom on two different occasions. Both times the packs were ripped into as I was getting up to walk down the road and warn the guys.
I've been hiking and backpacking since 1968 and by far the most opportunistic activity I've seen is from Whitney portal to Yosemite Valley. Probably not statistically significant as I have spent more time in the Sierras than most other places.
I'd say don't worry about it, but I always have plenty of room to pack my fears and worry about what ifs and the possibilities of zombie attacks on trail. Its taken more than 50 years to get my pack weight down from mid 50's to mid 20's for a 9 day typical summer outing. And I've yet to see a zombie or encounter dinosaur sized ants on the trail.
Best of luck.