Skip to content

Commit a5ecf75

Browse files
committed
fixup! CI: cover internal self-hosted runners in the runner trust probe
Exclude the probe workflow itself from the grep scan so description-string examples do not produce phantom runner labels. Also filter extracted tokens ending in '-' as a defensive guard against artifact-name suffixes.
1 parent ff39a12 commit a5ecf75

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎.github/workflows/runner-trust-probe.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ jobs:
6767
# host-platform strings (e.g. 'linux-64') deliberately do not match.
6868
scanned="$(grep -rhoE \
6969
'(linux|windows|wsl)-[a-z0-9-]*(cpu[0-9]+|gpu-[a-z0-9]|internal|1xgb10)[a-z0-9-]*|(linux|windows|wsl)-riscv64-[a-z0-9][a-z0-9-]*[a-z0-9]' \
70-
.github/workflows/ | sort -u | jq -Rsc 'split("\n") | map(select(length > 0))' || true)"
70+
.github/workflows/ --exclude=runner-trust-probe.yml \
71+
| sort -u | jq -Rsc 'split("\n") | map(select(length > 0 and (endswith("-") | not)))' || true)"
7172
scanned="${scanned:-[]}"
7273
7374
# GPU labels derived from the test matrix cover labels passed via matrix

0 commit comments

Comments
 (0)