INNER CODE UNIT · Python

isAuthorizedRunAttempt

kubeovn/kube-ovn · hack/e2e_control.py:488

def isAuthorizedRunAttempt(run, commentPages, headSHA, baseSHA):
    runAttempt = run.get("run_attempt")
    if not isinstance(runAttempt, int) or runAttempt <= 0:
        return False
    if runAttempt == 1:
        return True
    if run.get("triggering_actor", {}).get("login") != "github-actions[bot]":
        return False
    return hasAuthorizedRerun(
        commentPages,
        run["id"],
        runAttempt,
        headSHA,
        baseSHA,
    )


def validateRequestMarker(request):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…