Repository navigation
Closed
Labels
priority: mediumMedium prioritytype: ci / cdRelated to continuous integration / deliveryworkload: hoursLikely takes hours to resolve
Description
Problem
CI fails in forks although the code is good (seen in uniqueg/foca-plugins, run 40618930367; proTES's ci.yml has the same steps). On a push to a fork's dev:
- "Submit Report to Codecov" has
fail_ci_if_erroron pushes; forks have noCODECOV_TOKEN(Token required - not valid tokenless upload), soTest (mongomock)fails; pushandpublishlog in to Docker Hub withDOCKERHUB_LOGIN/DOCKERHUB_TOKEN(environmentdev-images), 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,security-events: write),publish(Docker Hub login, attestations, cosign signing with OIDC). All other jobs (lint, tests, chart, docs, release readiness, smoke test) need neither secrets nor write permissions; caches write to the fork's own cache.release.yml(tags only): environmentreleasewith a required reviewer, Docker Hub pushes, signing; in a fork it fails safely at the first credential, as a release dry run in a fork expects. No change.scan.yml(schedule, manual): scans the publishedlatest; scheduled runs are disabled in forks by default. No change.
Proposed change
As in FOCA (elixir-cloud-aai/foca#546):
- Codecov: upload errors fail CI only on pushes to 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(already documented as the way forks publish).scan: otherwise build and scan the image locally, as for pull requests, so that the scan still gates; upload to code scanning only in this repository.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 unchanged; tests, coverage threshold, 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
test: catch inverted owner checks in CI