Skip to content

SRE-1475: Keep CI secrets in GitHub environments and lint workflows with jactionlint's pedantic profile - #186

Merged
TimDiekmann merged 3 commits into
mainfrom
t/sre-1475-run-renovate-in-the-renovate-environment
Nov 27, 2026
Merged

TimDiekmann merged 3 commits into
mainfrom
t/sre-1475-run-renovate-in-the-renovate-environment

Conversation

@TimDiekmann

Copy link
Copy Markdown
Member

🌟 Purpose

Renovate's secrets move from organization secrets into this repository's Renovate environment, which only main may use, and the shared workflows of hashintel/actions move 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.yml runs Renovate on its schedule and on dispatch only. Preflight Lint validates the Renovate config instead of a pull request run.
  • preflight-edit.yml on pull_request replaces preflight-target.yml on pull_request_target. Job names stay, so the check names do too.
  • The Rust CI scripts install their dependencies from .github/scripts/rust/uv.lock with uv sync --locked instead of an unpinned pip install.
  • install-rust-toolchain checks the toolchain name before it writes it to $GITHUB_ENV.
  • rust.yml drops the Turbo settings, which no step uses, and the unused samples output. Its jobs get timeouts and their own permissions.
  • @hashintel/infra owns the CI configuration, @hashintel/infra-admins the CODEOWNERS file.

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.
@vercel

vercel Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
petrinaut-gaios Error Error Nov 27, 2026 4:53pm UTC
petrinaut-hazel Ready Ready Preview Nov 27, 2026 4:53pm UTC

Request Review

@TimDiekmann
TimDiekmann marked this pull request as ready for review November 27, 2026 12:09
Copilot AI balanced review requested due to automatic review settings November 27, 2026 12:09
@cursor

cursor Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

PR Summary

Medium Risk
Workflow and secret wiring changes affect Renovate and PR checks; mistakes could break CI or secret access, but changes stay in GitHub Actions configuration with scoped permissions.

Overview
This PR hardens CI and secret handling: Renovate moves to repository environment secrets (with Vault role wiring) via an updated hashintel/actions pin, and workflows are adjusted so they satisfy jactionlint’s pedantic profile.

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: preflight.yml covers lint and dependency review on normal PRs; new preflight-edit.yml (plain pull_request, including edited) replaces pull_request_target in the removed preflight-target.yml for todo-comments and PR title checks. Each caller has its own concurrency group.

Rust CI installs Python deps with uv sync --locked (pyproject.toml / uv.lock) instead of unpinned pip install. The install-rust-toolchain action validates the toolchain string before writing to $GITHUB_ENV.

rust.yml drops unused Turbo env and the samples output, adds per-job timeouts and minimal permissions, and runs setup scripts via uv run. CODEOWNERS assigns infra teams to CI paths.

Reviewed by Cursor Bugbot for commit cd21b95. Bugbot is set up for automated code reviews on this repo. Configure here.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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_request events.
  • 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
indietyp previously approved these changes Nov 27, 2026

@indietyp indietyp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for switching to uv as well!

@TimDiekmann TimDiekmann changed the title SRE-1475: Run Renovate in its environment and move to hashintel/actions@731e604 SRE-1475: Keep CI secrets in GitHub environments and lint workflows with jactionlint's pedantic profile Nov 27, 2026
@TimDiekmann
TimDiekmann added this pull request to the merge queue Nov 27, 2026
@TimDiekmann
TimDiekmann removed this pull request from the merge queue due to a manual request Nov 27, 2026
@TimDiekmann
TimDiekmann added this pull request to the merge queue Nov 27, 2026
Merged via the queue into main with commit 5fd9d12 Nov 27, 2026
19 of 29 checks passed
@TimDiekmann
TimDiekmann deleted the t/sre-1475-run-renovate-in-the-renovate-environment branch November 27, 2026 18:02

This branch had an error being deployed

2 failed and 1 active deployments
Preview – petrinaut-hazel — cd21b956 Deployed Nov 27, 2026 by vercel[bot]
Preview – petrinaut-gaios — cd21b956 Deployed Nov 27, 2026 by vercel[bot]
Preview – hcore — cd21b956 Deployed Nov 27, 2026 by vercel[bot]
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.

3 participants