Skip to content

Fix: prevent workflows from running on forks - #583

Merged
murrant merged 1 commit into
librenms:masterfrom
MarlinMr:fix/workflows-fork-sync
Aug 28, 2026
Merged

Fix: prevent workflows from running on forks#583
murrant merged 1 commit into
librenms:masterfrom
MarlinMr:fix/workflows-fork-sync

Conversation

@MarlinMr

@MarlinMr MarlinMr commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Description:

This PR restricts the build and test workflows to only run on the upstream repository (librenms/docker).

Changes:

  • Added if: github.repository == 'librenms/docker' condition to both workflow jobs

Why:
Forks were triggering build/test jobs unnecessarily, consuming CI resources. These workflows should only run on the upstream repo where the Docker images are actually published to Docker Hub.

@MarlinMr
MarlinMr requested a review from crazy-max as a code owner August 27, 2026 23:01
@MarlinMr
MarlinMr force-pushed the fix/workflows-fork-sync branch from 4674ce7 to f4b34ce Compare August 27, 2026 23:02
@murrant
murrant merged commit 9e334f5 into librenms:master Aug 28, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants