CI: restrict workflows to only run on owner repository (#817)

This commit is contained in:
Philip H 2024-02-04 22:56:40 +01:00 committed by GitHub
commit f2727e64a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 7 additions and 0 deletions

View file

@ -12,6 +12,7 @@ jobs:
analyze: analyze:
name: Analyze name: Analyze
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository_owner == 'wg-easy'
permissions: permissions:
actions: read actions: read
contents: read contents: read

View file

@ -7,6 +7,7 @@ jobs:
deploy: deploy:
name: Build & Deploy name: Build & Deploy
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository_owner == 'wg-easy'
permissions: permissions:
packages: write packages: write
contents: read contents: read

View file

@ -9,6 +9,7 @@ jobs:
deploy: deploy:
name: Build & Deploy name: Build & Deploy
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository_owner == 'wg-easy'
permissions: permissions:
packages: write packages: write
contents: read contents: read

View file

@ -10,6 +10,7 @@ jobs:
deploy: deploy:
name: Build & Deploy name: Build & Deploy
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository_owner == 'wg-easy'
permissions: permissions:
packages: write packages: write
contents: read contents: read

View file

@ -11,6 +11,7 @@ jobs:
lint: lint:
name: Lint name: Lint
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository_owner == 'wg-easy'
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4

View file

@ -10,6 +10,7 @@ jobs:
npmupbot: npmupbot:
name: NPM Update Bot 🤖 name: NPM Update Bot 🤖
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository_owner == 'wg-easy'
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4

View file

@ -14,6 +14,7 @@ jobs:
stale: stale:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository_owner == 'wg-easy'
permissions: permissions:
issues: write issues: write
pull-requests: write pull-requests: write