Isolate trusted OS jobs from fast runner
source-pr / source (pull_request) Successful in 48s

This commit is contained in:
2026-10-20 18:45:04 -06:00
parent ae7745772a
commit c424f7e192
4 changed files with 10 additions and 4 deletions
+3 -1
View File
@@ -12,7 +12,9 @@ concurrency:
jobs:
publish:
runs-on: alkane-pages
runs-on: alkane-verify
container:
image: gitea.bluefla.re/blueflare/alkane-ci@sha256:ad56db2fc456a3f1c68c715ba44309751cb5c455376d9f797ac346833c011e15
permissions:
contents: read
steps:
+1 -1
View File
@@ -12,7 +12,7 @@ concurrency:
jobs:
publish:
runs-on: alkane-fast
runs-on: alkane-verify
container:
image: gitea.bluefla.re/blueflare/alkane-ci@sha256:ad56db2fc456a3f1c68c715ba44309751cb5c455376d9f797ac346833c011e15
permissions:
+1 -1
View File
@@ -10,7 +10,7 @@ concurrency:
jobs:
build:
runs-on: alkane-fast
runs-on: alkane-verify
container:
image: gitea.bluefla.re/blueflare/alkane-ci@sha256:ad56db2fc456a3f1c68c715ba44309751cb5c455376d9f797ac346833c011e15
env:
+5 -1
View File
@@ -22,7 +22,11 @@ def main() -> int:
for path in sorted((ROOT / ".gitea/workflows").glob("*.yml")):
workflow = yaml.load(path.read_text(), Loader=yaml.BaseLoader)
for name, job in workflow.get("jobs", {}).items():
if job.get("runs-on") not in {"alkane-ci", "alkane-fast"}:
if (job.get("runs-on") in {"alkane-fast", "alkane-pages"}
and "secrets." in str(job)):
print(f"{path.name}: {name} exposes a secret to the fast runner", file=sys.stderr)
return 1
if job.get("runs-on") not in {"alkane-ci", "alkane-fast", "alkane-verify"}:
continue
if job.get("container", {}).get("image") != IMAGE:
print(f"{path.name}: {name} has a different runner image", file=sys.stderr)