Don't run core actions on forks (#11072)

This commit is contained in:
Alexander Brandes 2025-09-17 16:11:52 +02:00 committed by GitHub
parent 80cb24beec
commit 077acbb3f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 5 additions and 2 deletions

View File

@ -7,6 +7,7 @@ on:
jobs:
post:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'jenkinsci' }}
steps:
- name: Post on Discourse
uses: roots/discourse-topic-github-release-action@c30dc233349b7c6f24f52fb1c659cc64f13b5474 # v1.0.1

View File

@ -18,7 +18,7 @@ jobs:
pull-requests: write # to add label to PR (release-drafter/release-drafter)
contents: write # to create a github release (release-drafter/release-drafter)
if: github.repository_owner == 'jenkinsci'
if: ${{ github.repository_owner == 'jenkinsci' }}
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"

View File

@ -9,7 +9,7 @@ permissions:
jobs:
main:
if: github.event.pull_request.user.login != 'dependabot[bot]'
if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' && github.repository_owner == 'jenkinsci' }}
runs-on: ubuntu-latest
steps:
- name: Label conflicting PRs

View File

@ -9,6 +9,7 @@ permissions:
jobs:
determine-version:
if: ${{ github.repository_owner == 'jenkinsci' }}
runs-on: ubuntu-latest
outputs:
project-version: ${{ steps.set-version.outputs.project-version }}

View File

@ -6,6 +6,7 @@ on:
- "master"
jobs:
label:
if: ${{ github.repository_owner == 'jenkinsci' }}
runs-on: ubuntu-latest
permissions:
issues: write