INNER CODE UNIT · Python

target_label

wolfSSL/wolfssl-examples · .github/scripts/issue_store.py:17

def target_label(target):
    return f"ci:{target}"

LABEL_MUTE = "ci:mute"
LABEL_UNCONFIRMED = "ci:unconfirmed"

FP_RE = re.compile(r"<!--\s*ci-fp:\s*v1\|([^\s>]+)\s*-->")
STATE_RE = re.compile(r"<!--\s*ci-state:\s*(\{.*?\})\s*-->", re.S)

# Secrets are scrubbed before anything reaches a PUBLIC issue tracker -- both
# log tails and every AI-authored field (a model can quote a secret back).
SCRUB = [
    (re.compile(r"gh[pousr]_[A-Za-z0-9]{20,}"), "***token***"),
    (re.compile(r"(?i)bearer\s+[A-Za-z0-9._\-]+"), "Bearer ***"),
    (
        re.compile(
            r"(?i)(x-api-key|authorization|password|secret|token)(['\"\s:=]+)\S+"
        ),

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…