Skip to content

chore(ci): don't run benchmarks on forks#1755

Open
miketheman wants to merge 1 commit intozizmorcore:mainfrom
miketheman:miketheman/dont-run-benchamrks-on-forks
Open

chore(ci): don't run benchmarks on forks#1755
miketheman wants to merge 1 commit intozizmorcore:mainfrom
miketheman:miketheman/dont-run-benchamrks-on-forks

Conversation

@miketheman
Copy link
Contributor

Pre-submission checks

Please check these boxes:

  • Mandatory: This PR corresponds to an issue (if not, please create
    one first).

  • Having read the AI policy, I hereby disclose the use of an LLM or other
    AI coding assistant in the creation of this PR. PRs will not be rejected
    for using AI tools, but will be rejected for undisclosed use or
    use that violates the policy.

If a checkbox is not applicable, you can leave it unchecked.

Summary

Prevents failures from forks trying to unsuccessfully upload benchmarks to CodSpeed

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
@miketheman miketheman requested a review from woodruffw March 12, 2026 21:59
@woodruffw
Copy link
Member

Maybe I'm missing something, but doesn't the current check already work? I see the benchmarks getting skipped on your PR here: #1756

@miketheman
Copy link
Contributor Author

miketheman commented Mar 13, 2026

They get skipped if it's a PR and doesn't have the label, but a push to my forks main branch, like synchronizing from upstream triggers them
https://github.com/zizmorcore/zizmor/blob/main/.github%2Fworkflows%2Fbenchmark.yml#L30

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants