Security Fix: Replace third-party GitHub Actions with native gh CLI equivalents#9252
Draft
Copilot wants to merge 2 commits into
Draft
Security Fix: Replace third-party GitHub Actions with native gh CLI equivalents#9252Copilot wants to merge 2 commits into
Copilot wants to merge 2 commits into
Conversation
…25-30066) Agent-Logs-Url: https://github.com/iTwin/itwinjs-core/sessions/f6859f29-3036-4047-a07e-d7d7d5b84c81 Co-authored-by: aruniverse <11051042+aruniverse@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Review and replace third party GitHub actions
Security Fix: Replace third-party GitHub Actions with native gh CLI equivalents
Apr 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Security Fix
Severity
Description
Two third-party GitHub Actions were removed from the CI workflows and replaced with equivalent implementations using GitHub's built-in
ghCLI and REST API — eliminating untrusted code execution in the runner environment.Root Cause
tj-actions/changed-files@v45was compromised as part of CVE-2025-30066, allowing the malicious action to exfiltrate runner secrets.LouisBrunner/checks-actionandmadrapps/add-reviewerswere flagged during the subsequent audit of all third-party action dependencies.Link to Security Notice
https://www.cve.org/CVERecord?id=CVE-2025-30066
Solution
status-check-override.yamltj-actions/changed-files@v45with agh apicall toGET /repos/{repo}/pulls/{number}/files(paginated), followed by a shell loop that matches each path against an allow-list regex — equivalent behavior, zero third-party code.LouisBrunner/checks-action@v2.0.0with a directgh api POST /repos/{repo}/check-runscall to create the synthetic success check.actions/checkout@v4step (no local git ops needed).permissions: { checks: write, pull-requests: read }.add-geometry-reviewers.yamlmadrapps/add-reviewers@v1withgh pr edit --add-reviewer, the canonical built-in mechanism.permissions: { pull-requests: write }.Additional Notes
mszostok/codeowners-validator@v0.7.0insanity.yamlwas reviewed and intentionally left in place — it provides non-trivial CODEOWNERS validation (syntax, duplicate patterns, unowned files) with no built-in GitHub equivalent and was not involved in this CVE.