Skip to content

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

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

TimDiekmann merged 2 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 README describes the Renovate environment.

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 README describes the `Renovate` environment.
@TimDiekmann TimDiekmann self-assigned this Nov 27, 2026
@TimDiekmann
TimDiekmann marked this pull request as ready for review November 27, 2026 11:16
Copilot AI balanced review requested due to automatic review settings November 27, 2026 11:16
@cursor

cursor Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

PR Summary

Medium Risk
Changes how Renovate authenticates (Vault/env secrets) and replaces pull_request_target preflight with pull_request, which affects when dependency review and title checks run but does not touch application runtime code.

Overview
Shifts Renovate and CI secret usage from organization-level stage variables to the repository Renovate GitHub environment (restricted to main), and pins hashintel/actions to a commit that supports that model and jactionlint pedantic linting.

Housekeeping no longer runs on pull requests: the in-repo Validate job and PR trigger are removed, so Renovate config is checked via Preflight Lint instead. The Renovate reusable workflow call gains vault-role, environment: Renovate, and CF_ACCESS_CLIENT_SECRET (replacing the stage secret), with concurrency so overlapping scheduled runs are not cancelled.

Preflight is split: preflight-edit.yml handles PR todo-comments and pr-title on normal pull_request (including edited); preflight.yml runs lint and dependencies without the edited event. preflight-target.yml (pull_request_target) is removed. Both workflows use distinct concurrency groups and the same updated action SHA.

actions.lock and README are updated to match the new workflow layout and environment-based secret docs.

Reviewed by Cursor Bugbot for commit db2332b. 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 secrets migration requires confirmation that the Renovate environment has the required variables/secrets and main-only access restrictions, which cannot be verified from the diff.

No open issues 🎉

What changed in this PR

This PR updates the repository’s shared workflows to hashintel/actions@731e604 and moves Renovate credentials into the repository’s Renovate environment, restricted to main.

Changes:

  • Runs Renovate only on schedule or manual dispatch, with configuration validation handled by Preflight Lint.
  • Replaces the target-event workflow with pull-request checks, preserving job names and separating title-sensitive checks.
  • Adds concurrency controls and updates workflow documentation and the action lockfile.
File Description
README.md Documents the Renovate environment and Preflight validation.
.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 that rerun on PR edits.
.github/​workflows/​housekeeping.yml Updates Renovate integration, removes PR validation, and queues runs without cancellation.
.github/​workflows/​actions.lock Reflects renamed workflows and removes unused action dependencies.

Review effort: Balanced

@TimDiekmann
TimDiekmann requested a review from a team November 27, 2026 11:19
@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 enabled auto-merge (squash) November 27, 2026 17:01
@TimDiekmann
TimDiekmann merged commit 2b7c598 into main Nov 27, 2026
10 checks passed
@TimDiekmann
TimDiekmann deleted the t/sre-1475-run-renovate-in-the-renovate-environment branch November 27, 2026 17:48
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