Commit Graph
4 Commits
Author SHA1 Message Date
Bart Smykla 14ea6d0f59 ci(ksai): start a KSAI run only for people who can write to the repository (#10578)
* ci(ksai): start a KSAI run only for people who can write to the repository

A comment or review now starts the KSAI run job only when its author
can write to this repository. A new authorize job reads the author's
permission with the workflow token, and the run job needs it. A
dispatched run starts as before.

Signed-off-by: Bart Smykla <bartek@smykla.com>

* ci(ksai): fail the authorize step when the permission read fails

A failed permission read used to answer writes=false with a green
job, so a writer's comment started nothing and the log said nothing.
The step now fails on a read error, the run job still does not start,
and the log names the error. An author who cannot write still reads
as writes=false.

Signed-off-by: Bart Smykla <bartek@smykla.com>

---------

Signed-off-by: Bart Smykla <bartek@smykla.com>
2026-10-09 07:04:27 +08:00
Bart Smykla bcaac3c08a ci(ksai): add KSAI through the public mirror (#10551)
A public repository cannot call a reusable workflow in the internal
KSAI repository, so the setup workflow fails before any job starts
with "workflow was not found". Call the published snapshot instead,
pinned to the current release and following its consumer template,
with every command enabled and a review on each opened pull request.

The snapshot names no model gateway of its own, so the call passes the
organization's gateway variable. It runs on GitHub-hosted runners,
because the Kong runner pool serves no public repository, and with no
GitHub App at all: push_as_app is false and no key is passed, so every
read and write goes through GITHUB_TOKEN.

Signed-off-by: Bart Smykla <bartek@smykla.com>
2026-09-24 16:50:31 +08:00
Bingbing 7c334de276 chore: remove KSAI workflow (#10478)
KSAI's reusable workflow at Kong/ksai isn't accessible from this repo, causing every run to fail with "workflow was not found".
2026-09-07 08:22:26 +00:00
Bingbing 1a5281c60f chore: add KSAI workflow (#10474) 2026-09-07 02:50:04 +00:00