Our study confirms the overall strong prognostic value of CD8+ TILs in NSCLC using a digital approach for automatic absolute quantification of CD8+ cell density and provide evidence that in PD-L1 positive tumors, a higher density of CD8+ lymphocytes is necessary to improve the prognosis. Here, CD274 is linked to non-small cell lung carcinoma.