diff --git a/.gitea/workflows/bench-pages.yml b/.gitea/workflows/bench-pages.yml index 32aa0ec..7ba82c5 100644 --- a/.gitea/workflows/bench-pages.yml +++ b/.gitea/workflows/bench-pages.yml @@ -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: diff --git a/.gitea/workflows/ci-badge.yml b/.gitea/workflows/ci-badge.yml index 8aaea6e..e889043 100644 --- a/.gitea/workflows/ci-badge.yml +++ b/.gitea/workflows/ci-badge.yml @@ -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: diff --git a/.gitea/workflows/next.yml b/.gitea/workflows/next.yml index fac001c..980d73a 100644 --- a/.gitea/workflows/next.yml +++ b/.gitea/workflows/next.yml @@ -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: diff --git a/ci/check-runner-image.py b/ci/check-runner-image.py index 3381847..1e4df32 100644 --- a/ci/check-runner-image.py +++ b/ci/check-runner-image.py @@ -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)