Skip to content

Commit 1d760c7

Browse files
Restrict some GH actions to not run on forks (#1047)
Co-authored-by: Yosuke Ota <[email protected]>
1 parent 7dc838c commit 1d760c7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/GHPages.yml

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ concurrency:
1818

1919
jobs:
2020
deploy:
21+
if: github.repository == 'sveltejs/eslint-plugin-svelte'
2122
environment:
2223
name: github-pages
2324
url: ${{ steps.deployment.outputs.page_url }}

.github/workflows/pkg.pr.new.yml

+5
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@ on:
66
branches: [main]
77
tags: ['!**']
88

9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
913
jobs:
1014
build:
15+
if: github.repository == 'sveltejs/eslint-plugin-svelte'
1116
runs-on: ubuntu-latest
1217

1318
steps:

0 commit comments

Comments
 (0)