def get_workflows(repos):
    """
    Get all the workflows with a `disabled_inactivity` state.
    """
    disabled_workflows = []

    for repo in repos:
        workflows_to_enable = [
            w for w in repo.get_workflows() if w.state == "disabled_inactivity"
        ]

        disabled_workflows += workflows_to_enable

    return disabled_workflows