Credit ratings apply to all debt of the same seniority, regardless of maturity, despite greater default risk over longer time horizons.
Credit spreads in high yield markets tend to be relatively flat, offering little benefit for duration risk unless you have a strong market outlook. Thus, investors in short-dated high yield are disproportionately compensated for the credit risk they assume.