Guides · ← All guides · Published November 14, 2026 · Reviewed November 14, 2026 · Ingenious AI team · 7 min read

Credentials in CI Configuration for Eval Jobs: The Runner Is Part of the Boundary

The eval does not only run on the runner; in every way that matters to an attacker, part of the eval is the runner — its variables, its cache, its config file in your repo.

The short answer: EvalEgress scans CI files with the same credential classes it applies to harness configs. treat the CI job as part of the eval environment, because its credentials are: the pipeline's variables, the CI config file committed in the repo, and the runner's caches together hold everything the eval will hold — and the CI config file is, itself, a declared file that gets copied with the folder. EvalEgress's credential classes match assignments in CI files exactly as in harness configs (generic_secret_assignment, github_token and friends). Keep values out of the file (CI variables, masked, injected at job time), scope them per job and per suite, prefer short-lived cloud credentials issued to the job over standing keys, and include the CI files in every declared set — run one through the free scan and see your pipeline as the scanner sees it.

What is CI-held credentials?

CI-held credentials are the secrets a continuous-integration job can access: variables configured in the CI system, values written into the committed CI configuration, credentials minted for the job by the platform, and material persisted in job caches and artefacts. For an eval job, they define the run's real identity — the harness inherits whatever the job holds.

Where do eval credentials leak into CI?

Three habitual places. The committed config: a variable written as a literal in the pipeline file 'temporarily', where it becomes the most widely distributed copy of that credential in the organisation — every clone of the repo, forever, history included. The variable store used carelessly: one project-level variable holding the production cloud key, inherited by every job including the ones that only lint — and readable, in many systems, by every maintainer the project accumulates. And the cache: dependency and artefact caches that quietly persist the generated .env or the results bundle with its echoed configuration, restored into future jobs on other branches, beyond the folder's own lifetime. Each place shares a cause with the eval folder's own findings — convenience under deadline — and the same remedy shape: values live in the narrowest store that can inject them at runtime, scoped to the job that needs them, and the committed files contain references only.

Short-lived issuance is the structural upgrade: modern CI platforms can mint per-job cloud credentials (OIDC-style federation) whose lifetime is the job's. An eval pipeline on per-job credentials holds, between runs, no standing secret at all — the CI equivalent of the eval role's scoped, manager-fetched pattern, and the end state this guide's checklist points at.

Why include CI files in the eval's declared set?

Because they declare the boundary's identity supply. A scan set that covers the harness but not the pipeline that launches it certifies the lock while ignoring the key-cutting machine next door: the job's variables decide which credentials exist inside the run, its checkout decides which repos the run's token can read, its artefacts decide where results (and their echoed configs) persist. Reviewers of the boundary — and the evidence pack that summarises it — need those declarations in view. Practically, CI files are small, textual and stable: including them costs a line in the set definition and routinely returns the report's most surprising finding, because nobody had ever scanned the pipeline as part of the product it builds.

The CI gate and the CI files are different topics that meet here: the gate (baseline diffs, exit codes) is the mechanism that watches the declared set for new exposures; the CI configuration is one of the watched. A gate that runs from a config file it does not itself scan has a blind spot shaped exactly like its own credentials — close it by listing the pipeline files in the set the pipeline scans.

How do artefacts and logs extend the boundary?

A job's outputs persist after its environment dies: artefacts uploaded for debugging, logs retained by the platform, caches shared across branches. Eval jobs produce unusually sensitive outputs — full transcripts, tool-call logs, the results bundle — and unusually leaky logs, because harnesses log their configuration at start-up unless someone taught them not to. Set artefact retention deliberately (days, not the platform's generous default), scrub configuration echoes from start-up logging (the manager pattern helps: a harness that fetches secrets has names to log, not values), and treat artefact access as results access — the same named roles, the same privacy posture as the results store itself. The boundary does not end when the job goes green; it ends when its last artefact expires.

Fork and external-contribution pipelines deserve their own line: jobs triggered from untrusted code must receive no eval credentials at all — a rule most CI systems support and many templates invert. An eval that can be invoked by a pull request from a fork, holding the suite's real keys, is an injection case with a billing account; scope the trigger before the dataset ever gets the chance.

Worked example: Satterthwaite Systems, scored end to end

Example. Satterthwaite, a fictional systems house, added its CI files to the declared set on a reviewer's suggestion and immediately understood the suggestion's value. The pipeline that ran the evals — and had never itself been scanned — contributed:

FindingClassSeverityWeight
GitHub token literal in the committed CI configurationgithub_tokenHIGH15
AWS secret access key assignment in the CI variables export fileaws_secret_access_keyHIGH15
Generic secret assignment in the job's setup scriptgeneric_secret_assignmentHIGH15

The arithmetic: 15 + 15 + 15 = 45 points of exposure, so the score is 100 − 45 = 55/100, grade C. Scoring uses EvalEgress's published weights — CRITICAL 25, HIGH 15, MEDIUM 8, LOW 3 — with grades at A ≥ 90, B ≥ 75, C ≥ 50 and D ≥ 25.

The token was revoked and replaced by the platform's per-job credential; cloud access moved to per-job federated issuance, deleting the standing key pair from CI entirely; the setup script's assignment became a masked variable injected at job time. Artefact retention dropped to seven days, start-up logging was scrubbed to names-not-values, and fork-triggered pipelines were stripped of eval credentials. The CI files joined the declared set permanently — scanned, the team noted, by the very pipeline they describe, which they decided was not recursion but justice. The re-scan reported zero findings.

Scope the runner: the five actions

The pipeline is part of the product it runs:

  1. Remove every literal credential from committed CI files. References only in the repo; values live in the CI variable store, masked, scoped to the project and job that need them.
  2. Prefer per-job, short-lived cloud credentials. Federated issuance whose lifetime is the run's: between jobs, the pipeline holds no standing secret — the strongest form of the manager pattern.
  3. Include the CI files in the declared set. Pipeline config, setup scripts, variable exports — scanned like any boundary document, by the gate the pipeline itself runs.
  4. Set artefact and log retention deliberately, and scrub start-up logging. Transcripts and results persist by schedule, not by platform default; harnesses log secret names, never values.
  5. Strip credentials from untrusted-trigger jobs. Fork and external pipelines receive no eval secrets — the trigger's trust level sets the job's ceiling, automatically.

The runner is the boundary's supply line; guard it like one. The gate that watches these files is the CI verdict guide — this one is about what the gate should be watching.

Keep checking the boundary

Run the free exposure scan on the files your next eval will run with. Compare plans, read the scoring documentation, and keep reading: what is eval-to-production exposure?, what is egress in AI evaluation?, pre-deployment eval safety checklist, how to stop an AI evaluation from reaching production secrets, re-scanning eval configs and drift, questions before running a production-connected eval, scan history and records. EvalEgress is one of the Ingenious AI platforms.

Sources

Frequently asked questions

Our CI variables are masked in logs. Isn't that enough?
Masking protects the log, not the job: every step in the job can still read the value, and a literal in the committed file is not a variable at all. Masking is hygiene; scoping and short-lived issuance are the control.

Why scan the CI file if values are in the variable store?
Because the file declares the structure — which jobs exist, what they can access, which triggers fire them — and because literals creep back into files precisely where nobody scans. The file is small; the habit is the point.

Per-job federated credentials sound complex. Worth it for evals?
For production-adjacent evals, yes — it deletes the standing-secret problem from the pipeline entirely. The setup is a platform feature in the major CI systems now, measured in an afternoon, against a rotation treadmill measured in quarters.

Do caches really hold credentials?
Caches hold whatever the job wrote: generated env files and results bundles are the usual carriers. Inventory your cache contents once, restrict keys to branch scope where the system allows, and expire aggressively.

Should the eval's CI job use the same token as the app's?
No — per-suite, per-purpose, like every other eval credential. A shared token makes the eval's compromise the app's incident and vice versa; separation is the entire doctrine of this guide series in one line.