Skip to content

Commit

Permalink
Restrict some GH actions to not run on forks (#1047)
Browse files Browse the repository at this point in the history
Co-authored-by: Yosuke Ota <otameshiyo23@gmail.com>
  • Loading branch information
marekdedic and ota-meshi authored Jan 31, 2025
1 parent 7dc838c commit 1d760c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/GHPages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ concurrency:

jobs:
deploy:
if: github.repository == 'sveltejs/eslint-plugin-svelte'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/pkg.pr.new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@ on:
branches: [main]
tags: ['!**']

permissions:
issues: write
pull-requests: write

jobs:
build:
if: github.repository == 'sveltejs/eslint-plugin-svelte'
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit 1d760c7

Please sign in to comment.