Repository navigation
Closed
Labels
priority: mediumMedium prioritytype: ci / cdRelated to continuous integration / deliveryworkload: hoursLikely takes hours to resolve
Milestone
Description
Problem
CI fails in forks although the code is good (seen in uniqueg/foca-plugins, run 40618930367, and FOCA's ci.yml has the same steps). On a push to a fork's dev:
- "Upload coverage to Codecov" has
fail_ci_if_error: true; forks have noCODECOV_TOKEN(Token required - not valid tokenless upload), soTest (Python 3.13, MongoDB 7.0)fails; pushandpublishlog in to Docker Hub withDOCKERHUB_LOGIN/DOCKERHUB_TOKEN, which forks don't have, so they fail;scanis then skipped, and theCI passedgate fails.
Audit of the workflows
ci.yml(push todev, pull requests): Codecov upload (secret),push(Docker Hub login),scan(SARIF upload to code scanning, needssecurity-events: write),publish(Docker Hub login, attestations, cosign signing with OIDC). All other jobs (lint, tests, lowest dependencies, integration, chart, chart install, release readiness) need neither secrets nor write permissions; pip/uv caches write to the fork's own cache.release.yml,release-chart.yml(tags only): PyPI trusted publishing and Docker Hub/GHCR logins in protected environments; in a fork they fail safely at the first credential, as a release dry run in a fork expects. No change.scan.yml(schedule, manual): scans the published images; scheduled runs are disabled in forks by default, a manual run works without secrets. No change.
Proposed change
- Codecov:
fail_ci_if_erroronly in this repository; the upload is still attempted everywhere. push/publish: only on pushes to this repository, or to a fork that sets the repository variableDOCKERHUB_ORG, whichdocs/contributing.mdalready documents as the way forks publish to their own organization.scan: in forks (withoutDOCKERHUB_ORG), build and scan the images locally, as for pull requests, so that the scan still gates; upload findings to code scanning only where images are published or for same-repository pull requests here.CI passed: allowpush/publishto be skipped whenever the run doesn't publish; still fail on any failed, cancelled or unexpectedly skipped job.- Job names and IDs stay unchanged; tests, coverage threshold (
fail_under = 100), linters and builds still apply everywhere.
Metadata
Metadata
Assignees
Labels
priority: mediumMedium prioritytype: ci / cdRelated to continuous integration / deliveryworkload: hoursLikely takes hours to resolve
Activity
ci: warn on release readiness in forks