Skip to content

ci: split run_examples to keep PR runs unsecured and gate API runs to main#531

Merged
Nelson-PROIA merged 1 commit into
mainfrom
chore/split-run-examples-for-env-gating
May 20, 2026
Merged

ci: split run_examples to keep PR runs unsecured and gate API runs to main#531
Nelson-PROIA merged 1 commit into
mainfrom
chore/split-run-examples-for-env-gating

Conversation

@Nelson-PROIA

@Nelson-PROIA Nelson-PROIA commented May 19, 2026

Copy link
Copy Markdown
Contributor

Summary

Split the examples workflow so that secret-using jobs only run on push to main behind an environment gate.

  • run_examples (build + install, no secrets, no environment, runs on PR + push to main)
  • examples (build + run examples with CI_MISTRAL_API_KEY_PYTHON_*, environment: publish, push-to-main only)
  • Pins all runners to ubuntu-24.04

Why

Today's workflow runs the API-key job on every PR with no environment gating. This change keeps PRs unblocked (build-only) and routes the API-key step through the publish environment so it requires reviewer approval before running.

Verification

  • publish environment already has all four CI_MISTRAL_API_KEY_PYTHON_{310,311,312,313} secrets
  • Required reviewer: Engineering SDK team

… main

- run_examples: build + install only, no secrets, no env, runs on PR + push
- examples: build + run examples with CI_MISTRAL_API_KEY_PYTHON_*, environment: publish, push-to-main only

Pins runners to ubuntu-24.04 while here.
@Nelson-PROIA Nelson-PROIA force-pushed the chore/split-run-examples-for-env-gating branch from b610cec to 5a91586 Compare May 19, 2026 13:00
@Nelson-PROIA Nelson-PROIA merged commit 8e8bedf into main May 20, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants