Repository navigation
SRE-1475: Keep CI secrets in GitHub environments and lint workflows with jactionlint's pedantic profile - #5
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 README describes the `Renovate` environment.
PR SummaryMedium Risk Overview 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 Preflight is split:
Reviewed by Cursor Bugbot for commit db2332b. 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 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
🌟 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.Renovateenvironment.