Repository navigation
SRE-1475: Keep CI secrets in GitHub environments and lint workflows with jactionlint's pedantic profile - #186
Conversation
731e604 - Renovate reads its Vault address and secrets from the `Renovate` environment, which only `main` may use. Its pull request runs are gone; Preflight Lint validates the Renovate config. - Preflight runs on `pull_request` in two workflows: `preflight.yml` runs Lint and Dependencies, `preflight-edit.yml` runs Todo comments and PR title, which read the PR title. - The workflows pass jactionlint's pedantic profile. - The Rust CI scripts install their dependencies from a uv lockfile, and `rust.yml` drops the unused Turbo settings and `samples` output.
`@hashintel/infra` owns the workflows, actions, CI scripts and the Renovate config, `@hashintel/infra-admins` the CODEOWNERS file.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR SummaryMedium Risk Overview Housekeeping no longer runs on PRs for config validation—that moves to preflight lint. It uses concurrency so scheduled/dispatch Renovate runs are not cancelled mid-flight. Preflight is split: Rust CI installs Python deps with
Reviewed by Cursor Bugbot for commit cd21b95. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
🔵 Needs a closer look
The privileged token-minting workflow requires confirmation that repository settings outside the diff provide the required Renovate environment secrets and variables and permit only main.
No open issues 🎉
What changed in this PR
Updates shared CI workflows to hashintel/actions@731e604 to support Renovate’s environment-scoped secrets and stricter workflow linting.
Changes:
- Limits Renovate to scheduled and manual runs, and reorganizes Preflight checks around
pull_requestevents. - Moves Rust CI’s Python dependencies to a locked uv project and adds toolchain validation, job permissions, and timeouts.
- Updates action locks and assigns ownership of CI configuration.
| File | Description |
|---|---|
.github/workflows/rust.yml |
Uses locked Python dependencies, scopes permissions, adds timeouts, and removes unused settings. |
.github/workflows/preflight.yml |
Updates shared lint and dependency checks and adds concurrency control. |
.github/workflows/preflight-target.yml |
Removes the workflow using pull_request_target. |
.github/workflows/preflight-edit.yml |
Adds title-sensitive checks for pull request edits. |
.github/workflows/housekeeping.yml |
Updates Renovate’s shared workflow, secret names, triggers, and concurrency. |
.github/workflows/actions.lock |
Refreshes action dependencies for the revised workflows. |
.github/scripts/rust/uv.lock |
Locks Rust CI’s Python dependencies and package hashes. |
.github/scripts/rust/requirements.txt |
Removes the dependency file replaced by the uv project. |
.github/scripts/rust/pyproject.toml |
Defines the Rust CI Python project and uv requirements. |
.github/scripts/rust/.python-version |
Pins the Python version for Rust CI scripts. |
.github/CODEOWNERS |
Assigns ownership of CI configuration and CODEOWNERS. |
.github/actions/setup-rust-ci/action.yml |
Installs uv and synchronizes locked dependencies. |
.github/actions/install-rust-toolchain/action.yml |
Validates toolchain input before use and environment export. |
Review effort: Balanced
indietyp
left a comment
There was a problem hiding this comment.
thank you for switching to uv as well!
🌟 Purpose
Renovate's secrets move from organization secrets into this repository's
Renovateenvironment, which onlymainmay use, and the shared workflows ofhashintel/actionsmove to the version that reads them from there. That version lints workflows with jactionlint's pedantic profile, which this repository's workflows now pass.🔍 Changes
housekeeping.ymlruns Renovate on its schedule and on dispatch only. Preflight Lint validates the Renovate config instead of a pull request run.preflight-edit.ymlonpull_requestreplacespreflight-target.ymlonpull_request_target. Job names stay, so the check names do too..github/scripts/rust/uv.lockwithuv sync --lockedinstead of an unpinnedpip install.install-rust-toolchainchecks the toolchain name before it writes it to$GITHUB_ENV.rust.ymldrops the Turbo settings, which no step uses, and the unusedsamplesoutput. Its jobs get timeouts and their own permissions.@hashintel/infraowns the CI configuration,@hashintel/infra-adminsthe CODEOWNERS file.