gha: make release workflow work in forks

Fixes #5098.

Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
This commit is contained in:
Kazuyoshi Kato 2021-07-02 16:15:36 -07:00
parent 7eceeb950b
commit 4c6e4a06ff

View File

@ -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