Skip to content

[release/2.2] Conditional actions - #14246

Merged
estesp merged 4 commits into
containerd:release/2.2from
samuelkarp:conditional-actions-2.2
Sep 28, 2026
Merged

estesp merged 4 commits into
containerd:release/2.2from
samuelkarp:conditional-actions-2.2

Conversation

@samuelkarp

Copy link
Copy Markdown
Member

Cherry-pick of #14232

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.

samuelkarp and others added 4 commits September 28, 2026 09:54
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]>
(cherry picked from commit 2e10f31)
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]>
(cherry picked from commit 798aacc)
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]>
(cherry picked from commit 3343c9c)
Signed-off-by: Samuel Karp <[email protected]>
…ository.

Signed-off-by: Shiming Zhang <[email protected]>
(cherry picked from commit 80dc405)
Signed-off-by: Samuel Karp <[email protected]>
@estesp
estesp merged commit 8f29b5e into containerd:release/2.2 Sep 28, 2026
54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants