The sun is not creating global warming. Man-made changes are causing the earth to retain more of the suns energy, thus warming the planet.
Given the current special meanings of those words in popular media, today, I agree.
But, it is really more complicate than that.
It is energy from the Sun that makes Earth warm, otherwise it would be colder than Pluto. And long-term variations in the Earth's orbit around the Sun, plus the tilt of the Earth's axis relative to the plane of its orbit, plus wobbles in that axis direction. determine how much solar energy hits Earth at what latitudes and at what parts of the year. Those variations are cyclic, and are named after the person who first described them, Milankovitch.
But how much of that solar energy gets retained and how much gets reflected back into space is much more complicated, depending on the amounts of various gases in the atmosphere, the amount of particles of various types in the atmosphere, and the reflectivity of the surface, both the land and the oceans, particularly including snow/ice cover, but also vegetation cover and colors of rocks (or paving and roofs).
We know from geology that, for the last few million year, the Earth has been going through ice ages with short warm periods between them, We know that there was more CO2 in the atmosphere before this last few million years, and that the Earth was warmer when there was more CO2. We also know that CO2 has varied somewhat cyclically as the earth warmed and cooled during the ice age cycles. But, it takes some time for solar energy to melt glaciers, warm the deep ocean, etc. And, as different parts of the Earth get warmer or colder, the circulation patterns in the atmosphere and oceans change to distribute the incoming energy differently. And, CO2 seems to get released into the atmosphere naturally as the Earth warms, so cause vs effect is at issue in the geological records.
What we so far have not been able to model accurately is how all of those parameters, acting together, created the ice ages specifically as we see them in the geological records (a process known as "backcasting" to check on the accuracy of models). So, exactly what the Earth's natural state would be right now if humans had not messed with so many of the heat retention parameters is not really known very precisely. The modelers tend to over estimate how accurate their models are, and that gets amplified by political activists and the popular media to sound far more certain than it should from an objective scientific perspective.
What we do know, objectively, is that the Earth is getting warmer, and that the way that humans have affected the Earth is expected to create that effect. It is not just the CO2 concentrations, it includes other gases and particles, plus changes to the surface colors, vegetation and animal populations on the land and in the oceans,
We are in a period where we are continuously learning new things about how fast glaciers and ice caps can melt and how fast they did so in the past warm periods, how long those warm periods lasted at different cycles, how high the sea level has risen in past warm periods, how different circulation patterns may come about, etc. etc, etc., all of which play into our continuously improving ability to understand how Earth's climate behaves in the short term and the long term.
The consensus today is that humans are contributing substantially to earth getting warmer, and I agree with that. But, I am skeptical that we know enough to control Earth's temperatures to keep them in the range that humans have found most comfortable over the last several thousand years. Those conditions are not the natural average, they are warmer than the average over the last few million years, but cooler than the many more millions of years before the latest set of ice age cycles began a few million years ago.
So, back to what the Sun is doing. We know that it has some cyclic activity, too, and that its cycles affect the upper atmosphere of Earth. So far, it does not look like those cycles have much effect on the Earth's overall climate. But, Earth's climate seems to have a somewhat chaotic behavior (using the special mathematical meaning of the word) so that it tends to switch from one set of conditions to another rather rapidly, then stay in that condition for a while before switching back. Chaotic systems tend to be overly sensitive to some specific parameters such that small variations can lead to "tipping points" that cause large changes in the parameters from one sort of stable condition to another sort of stable condition.
There is a lot of discussion about tipping points that could affect the changes between ice ages and the short warm periods between them. And, there is still some lack of understanding about why the geological records of the ice age cycles don't seem to exactly match the Milankovitch Cycles, or why the ice ages were every 50,000 years until about 900,000 years ago, when they switched to every 100,000 years. The actual changes may (or may not) be associated with a combination of parameters that vary on different cycles needing to come together, and doing so at points in time that we do not yet predict properly because there are still some things we need to discover.
Whether or not there is any effect of solar cycles on ice age cycles is still open for debate, although it is not currently considered important by most climate scientists.
But, the recent discovery of unexpectedly high energy photons being emitted by the Sun does not seem relevant to the global warming issue. We have no reason to believe that those high energy photons have not been getting emitted for the billions of years that the Sun had been shining. We have just discovered them, so we have no scientific record about whether they vary with time, or if that has any significant effect on Earth if they do vary with time. But, they do not constitute the bulk of the Sun's energy that gets absorbed by Earth, so there is no reason to think they have any significant effect on climate, so far as we can currently tell.