Skip to content

Chore: Remove the allow-list drift check - #202

Merged
ModeSevenIndustrialSolutions merged 1 commit into
lfreleng-actions:mainfrom
modeseven-lfreleng-actions:chore/remove-allow-list-drift-check
Nov 6, 2026
Merged

ModeSevenIndustrialSolutions merged 1 commit into
lfreleng-actions:mainfrom
modeseven-lfreleng-actions:chore/remove-allow-list-drift-check

Conversation

@ModeSevenIndustrialSolutions

Copy link
Copy Markdown
Member

Closes #200

Removes the per-repository harden-runner allow-list drift check: the harden-runner-inputs pre-commit hook (its - repo: local block and comment), the script it ran (tests/test-harden-runner-inputs.sh), and the documentation sentences saying a local test enforces the harden_runner_* inputs. Every other hook is untouched, and the inputs and their documentation stay.

The check is being re-implemented once in lfreleng-actions/.github, as a single job auditing the whole estate. The per-repository copies had drifted to four versions across ten repositories, and the exact-pin copies failed pre-commit.ci on every correct harden-runner-block-action pin bump. This also clears that failure from the open action-bump PR in this repository.

Made by hand: Code Monkey declined the issue because it may not edit .pre-commit-config.yaml, and removing the script alone would leave the hook pointing at a missing file.

Validation: prek run --all-files and aislop ci --staged (no findings); git grep finds no remaining reference to the hook, the script or "allow-list input drift".

Remove the harden-runner-inputs pre-commit hook and the script it
ran, tests/test-harden-runner-inputs.sh, with the documentation
sentences saying a local test enforces the harden_runner_* inputs.

The check is being re-implemented once, centrally, in
lfreleng-actions/.github as a single job auditing the whole estate.
The per-repository copies had drifted to four versions across ten
repositories, and the exact-pin copies failed pre-commit.ci on every
correct harden-runner-block-action pin bump.

The five harden_runner_* inputs and their documentation stay. Made by
hand: Code Monkey may not edit .pre-commit-config.yaml, and removing
the script alone would leave the hook pointing at a missing file.

Closes lfreleng-actions#200

Co-authored-by: Claude <[email protected]>
Signed-off-by: Matthew Watkins <[email protected]>
@ModeSevenIndustrialSolutions
ModeSevenIndustrialSolutions requested review from a team and a balanced review from Copilot November 6, 2026 13:58
@github-actions github-actions Bot added the chore Code chores (dependency updates, etc) label Nov 6, 2026

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.

🟢 Approval recommended

No active review issues block the removal of the repository-local drift check ahead of its replacement with a centralized audit.

No open issues 🎉

What changed in this PR

Removes the repository-local harden-runner allow-list drift check as requested in #200, ahead of its replacement with a centralized audit in lfreleng-actions/.github.

Changes:

  • Deletes the drift-check script and its pre-commit hook.
  • Removes the documentation claim that the script enforces input consistency.
  • Leaves workflow inputs, their documentation, and all other hooks unchanged.
File Description
tests/​test-harden-runner-inputs.sh Deletes the local drift checker and its self-tests.
docs/​BRIEF.md Removes the enforcement claim while retaining the input contract description.
.pre-commit-config.yaml Removes the drift-check hook block and its explanatory comment.

Review effort: Balanced

@ModeSevenIndustrialSolutions
ModeSevenIndustrialSolutions merged commit b9d7b83 into lfreleng-actions:main Nov 6, 2026
16 checks passed
@ModeSevenIndustrialSolutions
ModeSevenIndustrialSolutions deleted the chore/remove-allow-list-drift-check branch November 6, 2026 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Code chores (dependency updates, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Chore: Remove the allow-list drift check

3 participants