Filter diff to include only rust files in diff cargo mutants CI
What changed, and why it matters
This is a minor change to a GitHub Actions CI workflow. It narrows the set of files included in a diff used by an automated mutation-testing tool (cargo-mutants) so that only Rust source files (*.rs) are considered. It does not change any production code, cryptographic logic, network handling, or user-facing behavior.
No security action needed. This is a routine CI maintenance change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit modifies .github/workflows/rust.yml, changing the git diff command in the cargo-mutants CI job from ‘git diff origin/master..’ to ‘git diff origin/master.. – ‘*.rs’‘. This restricts mutation testing to files with the .rs extension. It is a CI optimization/precision change with no runtime security implications.
Changed components
.github/workflows/rust.ymlInspect captured patch +1 / −1
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index b6a9f5e6..5e3ac91d 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -458,7 +458,7 @@ jobs:
- name: "Fetch base branch for diff"
run: git fetch origin master
- name: "Retrieve relative diff"
- run: git diff origin/master.. | tee git.diff
+ run: git diff origin/master.. -- '*.rs' | tee git.diff
- uses: taiki-e/install-action@81ee1d48d9194cdcab880cbdc7d36e87d39874cb # v2.62.45
with:
tool: cargo-mutants
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.