-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
fix: Restrict scheduled workflows to upstream repository #6948
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,8 @@ permissions: {} | |
|
|
||
| jobs: | ||
| stale: | ||
| # Only run on the original repository, not on forks | ||
| if: github.repository == 'louislam/uptime-kuma' | ||
| runs-on: ubuntu-latest | ||
|
Comment on lines
+11
to
13
|
||
| permissions: | ||
| actions: write | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This job-level condition will also skip the job for
workflow_dispatchruns on forks, so manual dispatch is not actually available there. If manual dispatch should still work on forks (as described in the PR), adjust the condition to only blockscheduleruns (e.g., allow non-schedule events regardless of repo), or update the PR description accordingly.