diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-12-08 22:54:28 +0200 | 
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-12-08 22:54:28 +0200 | 
| commit | e535be623ad29d08fefc15ddef8487e71e33bde4 (patch) | |
| tree | 34d744fb886e234baff9c3d64e7f6e8efe9a6dc3 /.github | |
| parent | 57968e38a9878a0db0505027b6efc5f851b9d2e2 (diff) | |
github: Prevent running actions on forked repositories
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/base-branch-label.yml | 1 | ||||
| -rw-r--r-- | .github/workflows/conflicts.yml | 1 | ||||
| -rw-r--r-- | .github/workflows/docker-daily-master.yml | 1 | ||||
| -rw-r--r-- | .github/workflows/docker-stable.yml | 1 | ||||
| -rw-r--r-- | .github/workflows/mergifyio_backport.yml | 1 | ||||
| -rw-r--r-- | .github/workflows/size-label.yml | 1 | ||||
| -rw-r--r-- | .github/workflows/stale.yml | 1 | 
7 files changed, 7 insertions, 0 deletions
diff --git a/.github/workflows/base-branch-label.yml b/.github/workflows/base-branch-label.yml index 01da280911..5c5d8290b7 100644 --- a/.github/workflows/base-branch-label.yml +++ b/.github/workflows/base-branch-label.yml @@ -8,6 +8,7 @@ on:  jobs:    label: +    if: github.repository == 'frrouting/frr'      runs-on: ubuntu-latest      permissions:        contents: read diff --git a/.github/workflows/conflicts.yml b/.github/workflows/conflicts.yml index 18a8c0d15d..3f51e7f4de 100644 --- a/.github/workflows/conflicts.yml +++ b/.github/workflows/conflicts.yml @@ -7,6 +7,7 @@ on:  jobs:    conflicts: +    if: github.repository == 'frrouting/frr'      runs-on: ubuntu-latest      permissions:        contents: read diff --git a/.github/workflows/docker-daily-master.yml b/.github/workflows/docker-daily-master.yml index c82d05323d..5b521a870d 100644 --- a/.github/workflows/docker-daily-master.yml +++ b/.github/workflows/docker-daily-master.yml @@ -10,6 +10,7 @@ concurrency:  jobs:    docker_daily_master: +    if: github.repository == 'frrouting/frr'      runs-on: ubuntu-latest      permissions:        contents: read diff --git a/.github/workflows/docker-stable.yml b/.github/workflows/docker-stable.yml index c720d35ca3..1e069a722e 100644 --- a/.github/workflows/docker-stable.yml +++ b/.github/workflows/docker-stable.yml @@ -11,6 +11,7 @@ concurrency:  jobs:    docker_daily_master: +    if: github.repository == 'frrouting/frr'      runs-on: ubuntu-latest      permissions:        contents: read diff --git a/.github/workflows/mergifyio_backport.yml b/.github/workflows/mergifyio_backport.yml index bca8f34fec..455dcbeb8e 100644 --- a/.github/workflows/mergifyio_backport.yml +++ b/.github/workflows/mergifyio_backport.yml @@ -4,6 +4,7 @@ on: [issue_comment]  jobs:    mergifyio_backport: +    if: github.repository == 'frrouting/frr'      runs-on: ubuntu-latest      steps:        - uses: actions/checkout@v2 diff --git a/.github/workflows/size-label.yml b/.github/workflows/size-label.yml index a37700342c..1ce07864ae 100644 --- a/.github/workflows/size-label.yml +++ b/.github/workflows/size-label.yml @@ -4,6 +4,7 @@ on: pull_request_target  jobs:    size-label: +    if: github.repository == 'frrouting/frr'      runs-on: ubuntu-latest      permissions:        contents: read diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 45095b3dd3..cd1365ba51 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -10,6 +10,7 @@ permissions:  jobs:    stale: +    if: github.repository == 'frrouting/frr'      permissions:        issues: write        pull-requests: write  | 
