Browse Source

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

pull/821/head
Philip H 1 year ago
committed by GitHub
parent
commit
f2727e64a7
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      .github/workflows/codeql.yml
  2. 1
      .github/workflows/deploy-development.yml
  3. 1
      .github/workflows/deploy-nightly.yml
  4. 1
      .github/workflows/deploy.yml
  5. 1
      .github/workflows/lint.yml
  6. 1
      .github/workflows/npm-update-bot.yml
  7. 1
      .github/workflows/stale.yml

1
.github/workflows/codeql.yml

@ -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

1
.github/workflows/deploy-development.yml

@ -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

1
.github/workflows/deploy-nightly.yml

@ -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

1
.github/workflows/deploy.yml

@ -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

1
.github/workflows/lint.yml

@ -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

1
.github/workflows/npm-update-bot.yml

@ -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

1
.github/workflows/stale.yml

@ -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

Loading…
Cancel
Save