Skip to content

ci: only build and push containers from the upstream repository - #1888

Merged
sbryngelson merged 1 commit into
masterfrom
docker-repo-guard
Sep 17, 2026
Merged

sbryngelson merged 1 commit into
masterfrom
docker-repo-guard

Conversation

@sbryngelson

Copy link
Copy Markdown
Member

Description

Forks that carry the DOCKERHUB_* secrets run the same weekly Containerization schedule and push to the same Docker Hub repository. On 2026-09-13 the sbryngelson/MFC fork, four commits behind master, overwrote every nightly-* tag on Docker Hub with stale images three hours after the upstream run had pushed fresh ones. This adds the github.repository == 'MFlowCode/MFC' guard that the coverage and docs workflows already use; manifests is skipped automatically through needs: Container.

Context: https://github.com/MFlowCode/MFC/deployments/containers (the Sep 13 upstream run also lost its manifests job to a GitHub internal error; that run has been re-run separately).

Acknowledgement

  • I confirm this PR meets the above expectations and reflects my own understanding and real-world context.

Forks that carry the DOCKERHUB_* secrets run the same weekly schedule and
push to the same Docker Hub repository. On 2026-09-13 the sbryngelson/MFC
fork, four commits behind master, overwrote the nightly-* tags with stale
images three hours after the upstream run had pushed fresh ones. Guard the
Container job (and, through needs:, manifests) the same way the coverage
and docs workflows already do.
Copilot AI lite review requested due to automatic review settings September 17, 2026 04:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Pull request overview

Adds a repository guard to prevent forks (even with Docker Hub secrets) from running the scheduled container build/push workflow and overwriting upstream Docker tags.

Changes:

  • Gate the Container job to run only when github.repository matches the upstream repo (MFlowCode/MFC).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@sbryngelson
sbryngelson merged commit 0ea5c0a into master Sep 17, 2026
34 checks passed
@sbryngelson
sbryngelson deleted the docker-repo-guard branch September 17, 2026 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants