IFN-γ and IL-17A cooperate to prevent S. aureus outgrowth during craniotomy infection. Here, IL17A is linked to infection.