The authors showed that CD8+ T-cell-derived IL-17 induced the expression of PDL-1 on antigen-presenting cholangiocytes and limited the expansion of self-reactive T cells in cholangitis. Here, CD8A is linked to cholangitis.