mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-03-03 03:07:02 +00:00
fix: Restrict scheduled workflows to upstream repository (#6948)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: CommanderStorm <26258709+CommanderStorm@users.noreply.github.com>
This commit is contained in:
4
.github/workflows/codeql-analysis.yml
vendored
4
.github/workflows/codeql-analysis.yml
vendored
@@ -10,6 +10,8 @@ on:
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
# Only run scheduled analysis on the original repository, not on forks
|
||||
if: github.event_name != 'schedule' || github.repository == 'louislam/uptime-kuma'
|
||||
name: Analyze
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 360
|
||||
@@ -42,6 +44,8 @@ jobs:
|
||||
with:
|
||||
category: "/language:${{matrix.language}}"
|
||||
zizmor:
|
||||
# Only run scheduled analysis on the original repository, not on forks
|
||||
if: github.event_name != 'schedule' || github.repository == 'louislam/uptime-kuma'
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
security-events: write
|
||||
|
||||
2
.github/workflows/release-nightly.yml
vendored
2
.github/workflows/release-nightly.yml
vendored
@@ -10,6 +10,8 @@ permissions: {}
|
||||
|
||||
jobs:
|
||||
release-nightly:
|
||||
# Only run on the original repository, not on forks
|
||||
if: github.repository == 'louislam/uptime-kuma'
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 120
|
||||
permissions:
|
||||
|
||||
2
.github/workflows/stale-bot.yml
vendored
2
.github/workflows/stale-bot.yml
vendored
@@ -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
|
||||
permissions:
|
||||
actions: write
|
||||
|
||||
Reference in New Issue
Block a user