pull_request triggered compare-binary-size workflow#6444
pull_request triggered compare-binary-size workflow#6444nihui merged 4 commits intoTencent:masterfrom
Conversation
|
|
|
The binary size change of libncnn.so (bytes)
|
There was a problem hiding this comment.
Pull request overview
This PR refactors the binary size comparison workflow from using pull_request_target (which runs in the context of the base branch with write permissions) to a more secure two-workflow pattern: a pull_request-triggered workflow that builds and uploads results as an artifact, and a separate workflow_run-triggered workflow that downloads the artifact and posts a PR comment with elevated permissions.
Key Changes:
- Changed trigger from
pull_request_targettopull_requestwith path filters for efficiency - Split PR commenting into a separate workflow (
compare-binary-size-pr-comment.yml) triggered by workflow_run - Replaced direct PR commenting with artifact upload/download pattern for improved security
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
.github/workflows/compare-binary-size.yml |
Converted to use pull_request trigger, added path filters, removed PR commenting logic in favor of artifact upload, updated checkout to use merge ref |
.github/workflows/compare-binary-size-pr-comment.yml |
New workflow that handles PR commenting via workflow_run trigger, downloads artifacts, and posts/updates PR comments using GitHub API |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Hello, thank you very much for your report. Your modifications did not work with contributions to the fork repository, so I modified it to two workflows to be compatible with the external contributors' pattern. |
|
Hi @nihui I shared the github manual for that . Its also recommended to create security policy with instructions for future researches on how to report critical vulnerabilities. |
The security vulnerability report is now enabled. Thanks! |
Hi @nihui , |
No description provided.