Repository navigation
Conditional actions - #14232
Conditional actions#14232
Conversation
Private forks of containerd are used for validating security patches ahead of public disclosure. Some jobs should not run in that context. Guard pull_request and push jobs with !github.event.repository.private so they continue to run on containerd/containerd and public forks. Because schedule events do not populate github.event.repository, guard scheduled runs in nightly.yml and scorecards.yml with github.repository == 'containerd/containerd'. Assisted-by: Antigravity Signed-off-by: Samuel Karp <[email protected]>
Skip the linters steps when running in private repositories while allowing the job itself to succeed so downstream jobs with `needs: [..., linters, ...]` still run. Exclude macos-latest and windows-latest from the linters matrix on private repositories to avoid starting unnecessary runners. Assisted-by: Antigravity Signed-off-by: Samuel Karp <[email protected]>
Commit 1921680 removed the separate integration/client Go module and merged its dependencies into the root module and vendor directory. Running `go mod download` before `go test` in integration/client is unnecessary because `go test` uses the root vendor directory. Assisted-by: Antigravity Signed-off-by: Samuel Karp <[email protected]>
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
No unresolved review issues were identified.
Review effort: Lite
Findings: None
What changed in this PR
Adds repository-visibility conditions to CI and release workflows for private forks, and removes a redundant integration dependency download.
Changes:
- Restricts public-only workflows and selected CI jobs for private repositories.
- Removes the explicit integration
go mod downloadstep.
| File | Description |
|---|---|
Makefile |
Removes explicit integration module download. |
.github/workflows/scorecards.yml |
Restricts Scorecards analysis. |
.github/workflows/release.yml |
Skips private-repository releases. |
.github/workflows/nightly.yml |
Limits nightly jobs for private repositories. |
.github/workflows/ci.yml |
Adjusts private-repository linting. |
.github/workflows/buf-breaking.yml |
Skips protobuf checks for private repositories. |
.github/workflows/api-release.yml |
Skips private-repository API releases. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
/cherry-pick release/2.4 |
|
@samuelkarp: #14232 failed to apply on top of branch "release/2.2": DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
@samuelkarp: #14232 failed to apply on top of branch "release/2.3": DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
@samuelkarp: new pull request created: #14237 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Private forks of containerd are used for validating security patches ahead of public disclosure. Some of what we run in CI shouldn't really run in that context. We've been working around it with a set of cherrypicks to remove those before, but it'd be simpler (for me 😄) to have this upstream.