Seek out ISI (if you're more tradCath) or IHS (if you're more libertarian) or Claremont people (if you're more Trumpy) for networking and support. Most profs and other grad students probably won't care too much as long as you're not injecting your politics into every conversation. Some might even welcome a different perspective in seminars and colloquia so long as it's done more Buckley-style and not Shapiro-style. You should tactfully inquire at some point though to make sure your advisor is cool. Don't shoot your mouth off online and make sure to ignore the endless stream of emails that you'll get from your school/department about the latest left-wing fads; it's not worth fighting on your own, especially as a grad student.
Realize that you will get strong pushback if you question certain assumptions in the discipline in your research, so consider that when you're choosing and framing your research topics. Avoid the more politicized topics (e.g. REP) at all costs if you want a shot at a job anywhere besides Quillette. You might be able to translate a different perspective into "surprising" and/or "counter-intuitive" findings if you play your cards right, but do be prepared to face a higher standard of evidence than following the party line. Figure out quickly how to "do good work" and focus more on that than anything else, including outside politics, while in grad school.