From 4c6e4a06ff8f7ef1ab28c67a97fe6bd0f79d73a8 Mon Sep 17 00:00:00 2001 From: Kazuyoshi Kato Date: Fri, 2 Jul 2021 16:15:36 -0700 Subject: [PATCH] gha: make release workflow work in forks Fixes #5098. Signed-off-by: Kazuyoshi Kato --- .github/workflows/release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8fe9e7ac8..1c50e1332 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -83,7 +83,10 @@ jobs: - name: Checkout containerd uses: actions/checkout@v2 with: - repository: containerd/containerd + # Intentionally use github.repository instead of containerd/containerd to + # make this action runnable on forks. + # See https://github.com/containerd/containerd/issues/5098 for the context. + repository: ${{ github.repository }} ref: ${{ github.ref }} path: src/github.com/containerd/containerd