Skip to content

Commit fe0116e

Browse files
committed
CI: skip some jobs when repo != containerd/containerd
For running CI in a non-upstream repo Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
1 parent 676b942 commit fe0116e

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ jobs:
5656
#
5757
project:
5858
name: Project Checks
59+
if: github.repository == 'containerd/containerd'
5960
runs-on: ubuntu-20.04
6061
timeout-minutes: 5
6162

.github/workflows/codeql.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ permissions: # added using https://github.com/step-security/secure-workflows
1515

1616
jobs:
1717
CodeQL-Build:
18+
if: github.repository == 'containerd/containerd'
1819
permissions:
1920
actions: read # for github/codeql-action/init to get workflow details
2021
contents: read # for actions/checkout to fetch code

.github/workflows/fuzz.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ jobs:
88
# Others use https://github.com/AdaLogics/go-fuzz-headers.
99
ci_fuzz:
1010
name: CI Fuzz
11+
if: github.repository == 'containerd/containerd'
1112
runs-on: ubuntu-latest
1213
timeout-minutes: 60
1314
steps:
@@ -35,6 +36,7 @@ jobs:
3536
# runnable with go test -fuzz.
3637
go_test_fuzz:
3738
name : go test -fuzz
39+
if: github.repository == 'containerd/containerd'
3840
runs-on: ubuntu-latest
3941
timeout-minutes: 30
4042
steps:

0 commit comments

Comments
 (0)