diff options
| author | Mark Stapp <mjs.ietf@gmail.com> | 2022-12-09 08:34:55 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-09 08:34:55 -0500 |
| commit | f29a262d8377e4dc6ac264da338cc2d796628e8f (patch) | |
| tree | 7b242569c0d8ce6d8a0e421fd33a86021380cb1e | |
| parent | c8cfee4e3b642bf7682010fa7d04020687a1ae66 (diff) | |
| parent | e535be623ad29d08fefc15ddef8487e71e33bde4 (diff) | |
Merge pull request #12471 from opensourcerouting/fix/gh_actions_on_forks_forbidden
github: Prevent running actions on forked repositories
| -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 |
