Skip to content
This repository was archived by the owner on Nov 10, 2026. It is now read-only.

ci: harden the pull request analysis - #51

Merged
vbreuss merged 1 commit into
mainfrom
ci/harden-pr-analysis
Oct 18, 2026
Merged

vbreuss merged 1 commit into
mainfrom
ci/harden-pr-analysis

Conversation

@vbreuss

@vbreuss vbreuss commented Oct 18, 2026

Copy link
Copy Markdown
Member

CI-Analysis runs with repository secrets on artifacts that a pull request controls, and it trusted the pull request number, branch name and comment body in them. A pull request could therefore comment on any pull request, overwrite the mutation score of main or mention users. The pull request and the dashboard version now come from the workflow_run event alone, the artifact is checked for symbolic links, the report is validated before the upload, comment content is defused, and only comments of the pipeline are updated.

A release tag that is no valid version now fails the build instead of producing an odd package version. Stryker is pinned to 5.0.0 through the build project so that Dependabot updates it, Sonar reads the generic coverage format, which keeps the lines of lambdas in generic classes, the mutation targets follow the names of aweXpect, and all actions are pinned to a commit.

CI-Analysis runs with repository secrets on artifacts that a pull request controls, and it trusted the pull request number, branch name and comment body in them. A pull request could therefore comment on any pull request, overwrite the mutation score of `main` or mention users. The pull request and the dashboard version now come from the `workflow_run` event alone, the artifact is checked for symbolic links, the report is validated before the upload, comment content is defused, and only comments of the pipeline are updated.

A release tag that is no valid version now fails the build instead of producing an odd package version. Stryker is pinned to 5.0.0 through the build project so that Dependabot updates it, Sonar reads the generic coverage format, which keeps the lines of lambdas in generic classes, the mutation targets follow the names of aweXpect, and all actions are pinned to a commit.
@vbreuss vbreuss self-assigned this Oct 18, 2026
@vbreuss
vbreuss added this pull request to stack #53 October 18, 2026 08:34
@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

Test Results

   31 files  ±0     31 suites  ±0   44s ⏱️ -1s
  894 tests ±0    893 ✅ ±0  1 💤 ±0  0 ❌ ±0 
5 314 runs  ±0  5 313 ✅ ±0  1 💤 ±0  0 ❌ ±0 

Results for commit cdfd25f. ± Comparison against base commit 171620e.

@vbreuss
vbreuss merged commit d6f403f into main Oct 18, 2026
15 checks passed
@vbreuss
vbreuss deleted the ci/harden-pr-analysis branch October 18, 2026 11:09
@github-actions

Copy link
Copy Markdown

This is addressed in release v0.5.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant