[PATCH] do not lockdown github PRs submitted to forks of official mirror

lauren@selfisekai.rocks posted 1 patch 1 year ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230407164559.28357-1-lauren@selfisekai.rocks
Maintainers: "Alex Bennée" <alex.bennee@linaro.org>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Thomas Huth <thuth@redhat.com>, Wainer dos Santos Moschetta <wainersm@redhat.com>, Beraldo Leal <bleal@redhat.com>
.github/workflows/lockdown.yml | 1 +
1 file changed, 1 insertion(+)
[PATCH] do not lockdown github PRs submitted to forks of official mirror
Posted by lauren@selfisekai.rocks 1 year ago
From: "Lauren N. Liberda" <lauren@selfisekai.rocks>

qemu forks on github are typically the way of work on changes
to be upstreamed later, such as support for new devices. currently,
the workflow prevents any external contributors from submitting
code changes, and blindly points them to upstream instead.

Signed-off-by: Lauren N. Liberda <lauren@selfisekai.rocks>
---
 .github/workflows/lockdown.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.github/workflows/lockdown.yml b/.github/workflows/lockdown.yml
index d5e1265cff..370f1c8f7e 100644
--- a/.github/workflows/lockdown.yml
+++ b/.github/workflows/lockdown.yml
@@ -12,6 +12,7 @@ permissions:
 jobs:
   action:
     runs-on: ubuntu-latest
+    if: github.repository == 'qemu/qemu'
     steps:
       - uses: dessant/repo-lockdown@v2
         with:
-- 
2.40.0