Skip to content

🐛(ci) scan on the trivy label in a workflow of its own - #3064

Merged
AntoLC merged 1 commit into
mainfrom
fix/ci-trivy-label-workflow
Nov 24, 2026
Merged

AntoLC merged 1 commit into
mainfrom
fix/ci-trivy-label-workflow

Conversation

@AntoLC

@AntoLC AntoLC commented Nov 24, 2026

Copy link
Copy Markdown
Member

Purpose

GitHub reads the required checks from the latest run of a workflow. Since the trivy label change, adding any label after the last push starts a Docker Hub run that skips every job, so the green build-and-push-*/build-amd64 checks of the push show as "Expected — Waiting for status to be reported" and the PR cannot be merged (e.g. #2930, labelled 30 s after its push).

Proposal

  • Remove the labeled trigger from docker-hub.yml, with its job conditions and per-label concurrency group
  • Add trivy.yml: when the trivy label is added, scan the 4 images without pushing them. Its checks (trivy-<service> / build-amd64) cannot hide the required ones
  • Later pushes on a PR with the trivy label are still scanned by docker-hub.yml, as before

GitHub reads the required checks from the latest run of a workflow. A
label added after the last push started a Docker Hub run that skipped
every job, so the green build-amd64 checks of the push looked missing
and the pull request could not be merged.

Signed-off-by: Anthony LC <[email protected]>
@AntoLC AntoLC added bug Something isn't working CI labels Nov 24, 2026
@AntoLC AntoLC self-assigned this Nov 24, 2026
@AntoLC
AntoLC requested a review from lunika November 24, 2026 09:42
@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

A new workflow runs Trivy scans for four service images when a pull request targeting main receives the trivy label. The Docker Hub workflow no longer handles labeled pull-request events or applies label-event conditions to its jobs. Its concurrency groups no longer include a run-specific suffix. The changelog records the workflow change and the Docker checks hidden when a label was added.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: lunika

Merge Risk: Minimal · up to d4279

This moves label-triggered Trivy scans into their own workflow so adding a label no longer hides required Docker checks. It affects CI only, and I found no concrete merge risk.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the Trivy scan triggered by the trivy label moves into its own workflow. The changeset matches this. docker-hub.yml drops the labeled trigger, and the new trivy.ym…
Description check Passed The description states the problem and the proposed fix. It explains that a label added after a push starts a docker-hub.yml run that skips jobs, which leaves required checks pending. It lists the cha…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: the Trivy scan triggered by the trivy label moves into its own workflow. The changeset matches this. docker-hub.yml drops the labeled trigger, and the new trivy.yml runs the scan when the label is added. The title uses a bug-fix emoji and a scope prefix, which is acceptable.

Full details: Description check

Explanation

The description states the problem and the proposed fix. It explains that a label added after a push starts a docker-hub.yml run that skips jobs, which leaves required checks pending. It lists the changes: removing the labeled trigger from docker-hub.yml, adding trivy.yml, and keeping scans on later pushes. These match the raw summary of the workflow and changelog changes.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 2f5d8f36-12d3-4580-8dcb-ccab5cf0ac77
Commits

Reviewing files that changed from the base of the PR and between 5b55459 and d42795b.

Files selected for processing: 3

  • .github/workflows/docker-hub.yml
  • .github/workflows/trivy.yml
  • CHANGELOG.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

@lunika

lunika commented Nov 24, 2026

Copy link
Copy Markdown
Member

the trivy_scan is still compute using the value of the labels. This should not be changed ? trivy_scan: ${{ startsWith(github.head_ref || github.ref_name, 'release/') || contains(github.event.pull_request.labels.*.name, 'trivy') }}

@AntoLC
AntoLC merged commit d42795b into main Nov 24, 2026
64 of 65 checks passed
@AntoLC
AntoLC deleted the fix/ci-trivy-label-workflow branch November 24, 2026 10:23
lunika added a commit that referenced this pull request Nov 24, 2026
Added

- ✨(yhub) expose whether valkey accepts writes as a metric #3035
- ✨(yhub) size and bound the compute pool: threads, queue, heap per thread
  #3040
- ✨(frontend) paste a link to a doc on a text to make it an interlink #3004
- 🔧(backend) make NUM_PROXIES configurable for the throttles #3005

Changed

- 📦️(docker) keep the yarn cache out of the node images #2992
- 🔧(yhub) SENTRY_PROFILES_SAMPLE_RATE samples processes since sentry 11 #2872
- ⚡️(backend) probe the celery worker with heartbeat files,
  not inspect ping #2956
- 💄(frontend) redesign offline error page #2808
- 🛂(frontend) allow asking for access from a sub-document page #2994
- 🔒️(backend) require an editor access on the tree to create a child document,
  a link definition alone is not enough anymore #3031

Fixed

- 🐛(ci) scan on the trivy label in a workflow of its own, adding a label
  hid the required docker checks #3064
- 🐛(frontend) keep the column layout when uploading a file in a column #3010
- 🐛(frontend) resume the analysis of an image nested in a column #3010
- 🐛(frontend) stop the right panel from covering the doc header actions #3037
- ✅(frontend) fix act warnings in the tests and fail on them #2983
- 🔒️(backend) never lower an existing role when accepting a request #2982
- 🐛(backend) delete the access requests a role given another way covers #2982
- 🗃️(backend) delete the stored access requests a role already covers #2982
- 🐛(frontend) show an error when approving an access request fails #2982
- 🔒️(backend) refuse to change the email of an invitation #2986
- 🐛(backend) count the ancestors in the rights on invitations #2986
- 🔒️(backend) only let owners update or delete an owner invitation #2986
- 🐛(frontend) follow the abilities of an invitation in the share dialog #2986
- 🐛(frontend) keep comments on inline nodes after a reload #2898
- 🐛(frontend) let the checkboxes of the tree root modals be unchecked #3015
- 🔒️(backend) match emails in a single normalized form #3017
- 🐛(backend) ask for access to the top parent doc from a sub-document #2994
- 🔒️(backend) require the owner role to move a document out of its tree #2978
- 🐛(backend) speed up the reconciliation admin with user autocompletes #3013
- 🐛(frontend) show right-to-left text from the right in the editor #2919
- 🐛(yhub) report unready when valkey only accepts reads #3035
- 🐛(yhub) restart when valkey turns read-only after a failover #3035
- 🐛(frontend) hide the sub-doc creation entries without children_create #3031
- 🔒️(backend) duplicate a sub doc in its parent only with rights on it #2979
- 🐛(frontend) add the copy of a sub doc to the tree only if it lands
  there #2979
- 🐛(backend) name users without an email instead of returning a 500 #2943
- 🐛(frontend) show an error page when the current user cannot be loaded #2943
- 🐛(frontend) pick a mention with a click in the comments sidebar #3055
- 🐛(backend) stop throttling the config endpoint #3005
- 🐛(backend) throttle anonymous users per browser, not per IP address #3005

Signed-off-by: Manuel Raynaud <[email protected]>
lunika added a commit that referenced this pull request Nov 24, 2026
Added

- ✨(yhub) expose whether valkey accepts writes as a metric #3035
- ✨(yhub) size and bound the compute pool: threads, queue, heap per thread
  #3040
- ✨(frontend) paste a link to a doc on a text to make it an interlink #3004
- 🔧(backend) make NUM_PROXIES configurable for the throttles #3005

Changed

- 📦️(docker) keep the yarn cache out of the node images #2992
- 🔧(yhub) SENTRY_PROFILES_SAMPLE_RATE samples processes since sentry 11 #2872
- ⚡️(backend) probe the celery worker with heartbeat files,
  not inspect ping #2956
- 💄(frontend) redesign offline error page #2808
- 🛂(frontend) allow asking for access from a sub-document page #2994
- 🔒️(backend) require an editor access on the tree to create a child document,
  a link definition alone is not enough anymore #3031

Fixed

- 🐛(ci) scan on the trivy label in a workflow of its own, adding a label
  hid the required docker checks #3064
- 🐛(frontend) keep the column layout when uploading a file in a column #3010
- 🐛(frontend) resume the analysis of an image nested in a column #3010
- 🐛(frontend) stop the right panel from covering the doc header actions #3037
- ✅(frontend) fix act warnings in the tests and fail on them #2983
- 🔒️(backend) never lower an existing role when accepting a request #2982
- 🐛(backend) delete the access requests a role given another way covers #2982
- 🗃️(backend) delete the stored access requests a role already covers #2982
- 🐛(frontend) show an error when approving an access request fails #2982
- 🔒️(backend) refuse to change the email of an invitation #2986
- 🐛(backend) count the ancestors in the rights on invitations #2986
- 🔒️(backend) only let owners update or delete an owner invitation #2986
- 🐛(frontend) follow the abilities of an invitation in the share dialog #2986
- 🐛(frontend) keep comments on inline nodes after a reload #2898
- 🐛(frontend) let the checkboxes of the tree root modals be unchecked #3015
- 🔒️(backend) match emails in a single normalized form #3017
- 🐛(backend) ask for access to the top parent doc from a sub-document #2994
- 🔒️(backend) require the owner role to move a document out of its tree #2978
- 🐛(backend) speed up the reconciliation admin with user autocompletes #3013
- 🐛(frontend) show right-to-left text from the right in the editor #2919
- 🐛(yhub) report unready when valkey only accepts reads #3035
- 🐛(yhub) restart when valkey turns read-only after a failover #3035
- 🐛(frontend) hide the sub-doc creation entries without children_create #3031
- 🔒️(backend) duplicate a sub doc in its parent only with rights on it #2979
- 🐛(frontend) add the copy of a sub doc to the tree only if it lands
  there #2979
- 🐛(backend) name users without an email instead of returning a 500 #2943
- 🐛(frontend) show an error page when the current user cannot be loaded #2943
- 🐛(frontend) pick a mention with a click in the comments sidebar #3055
- 🐛(backend) stop throttling the config endpoint #3005
- 🐛(backend) throttle anonymous users per browser, not per IP address #3005

Signed-off-by: Manuel Raynaud <[email protected]>
lunika added a commit that referenced this pull request Nov 26, 2026
Added

- ✨(yhub) expose whether valkey accepts writes as a metric #3035
- ✨(yhub) size and bound the compute pool: threads, queue, heap per thread
  #3040
- ✨(frontend) paste a link to a doc on a text to make it an interlink #3004
- 🔧(backend) make NUM_PROXIES configurable for the throttles #3005

Changed

- 📦️(docker) keep the yarn cache out of the node images #2992
- 🔧(yhub) SENTRY_PROFILES_SAMPLE_RATE samples processes since sentry 11 #2872
- ⚡️(backend) probe the celery worker with heartbeat files,
  not inspect ping #2956
- 💄(frontend) redesign offline error page #2808
- 🛂(frontend) allow asking for access from a sub-document page #2994
- 🔒️(backend) require an editor access on the tree to create a child document,
  a link definition alone is not enough anymore #3031

Fixed

- 🐛(ci) scan on the trivy label in a workflow of its own, adding a label
  hid the required docker checks #3064
- 🐛(frontend) keep the column layout when uploading a file in a column #3010
- 🐛(frontend) resume the analysis of an image nested in a column #3010
- 🐛(frontend) stop the right panel from covering the doc header actions #3037
- ✅(frontend) fix act warnings in the tests and fail on them #2983
- 🔒️(backend) never lower an existing role when accepting a request #2982
- 🐛(backend) delete the access requests a role given another way covers #2982
- 🗃️(backend) delete the stored access requests a role already covers #2982
- 🐛(frontend) show an error when approving an access request fails #2982
- 🔒️(backend) refuse to change the email of an invitation #2986
- 🐛(backend) count the ancestors in the rights on invitations #2986
- 🔒️(backend) only let owners update or delete an owner invitation #2986
- 🐛(frontend) follow the abilities of an invitation in the share dialog #2986
- 🐛(frontend) keep comments on inline nodes after a reload #2898
- 🐛(frontend) let the checkboxes of the tree root modals be unchecked #3015
- 🔒️(backend) match emails in a single normalized form #3017
- 🐛(backend) ask for access to the top parent doc from a sub-document #2994
- 🔒️(backend) require the owner role to move a document out of its tree #2978
- 🐛(backend) speed up the reconciliation admin with user autocompletes #3013
- 🐛(frontend) show right-to-left text from the right in the editor #2919
- 🐛(yhub) report unready when valkey only accepts reads #3035
- 🐛(yhub) restart when valkey turns read-only after a failover #3035
- 🐛(frontend) hide the sub-doc creation entries without children_create #3031
- 🔒️(backend) duplicate a sub doc in its parent only with rights on it #2979
- 🐛(frontend) add the copy of a sub doc to the tree only if it lands
  there #2979
- 🐛(backend) name users without an email instead of returning a 500 #2943
- 🐛(frontend) show an error page when the current user cannot be loaded #2943
- 🐛(frontend) pick a mention with a click in the comments sidebar #3055
- 🐛(backend) stop throttling the config endpoint #3005
- 🐛(backend) throttle anonymous users per browser, not per IP address #3005

Signed-off-by: Manuel Raynaud <[email protected]>
lunika added a commit that referenced this pull request Nov 26, 2026
Added

- ✨(yhub) expose whether valkey accepts writes as a metric #3035
- ✨(yhub) size and bound the compute pool: threads, queue, heap per thread
  #3040
- ✨(frontend) paste a link to a doc on a text to make it an interlink #3004
- 🔧(backend) make NUM_PROXIES configurable for the throttles #3005

Changed

- 📦️(docker) keep the yarn cache out of the node images #2992
- 🔧(yhub) SENTRY_PROFILES_SAMPLE_RATE samples processes since sentry 11 #2872
- ⚡️(backend) probe the celery worker with heartbeat files,
  not inspect ping #2956
- 💄(frontend) redesign offline error page #2808
- 🛂(frontend) allow asking for access from a sub-document page #2994
- 🔒️(backend) require an editor access on the tree to create a child document,
  a link definition alone is not enough anymore #3031

Fixed

- 🐛(ci) scan on the trivy label in a workflow of its own, adding a label
  hid the required docker checks #3064
- 🐛(frontend) keep the column layout when uploading a file in a column #3010
- 🐛(frontend) resume the analysis of an image nested in a column #3010
- 🐛(frontend) stop the right panel from covering the doc header actions #3037
- ✅(frontend) fix act warnings in the tests and fail on them #2983
- 🔒️(backend) never lower an existing role when accepting a request #2982
- 🐛(backend) delete the access requests a role given another way covers #2982
- 🗃️(backend) delete the stored access requests a role already covers #2982
- 🐛(frontend) show an error when approving an access request fails #2982
- 🔒️(backend) refuse to change the email of an invitation #2986
- 🐛(backend) count the ancestors in the rights on invitations #2986
- 🔒️(backend) only let owners update or delete an owner invitation #2986
- 🐛(frontend) follow the abilities of an invitation in the share dialog #2986
- 🐛(frontend) keep comments on inline nodes after a reload #2898
- 🐛(frontend) let the checkboxes of the tree root modals be unchecked #3015
- 🔒️(backend) match emails in a single normalized form #3017
- 🐛(backend) ask for access to the top parent doc from a sub-document #2994
- 🔒️(backend) require the owner role to move a document out of its tree #2978
- 🐛(backend) speed up the reconciliation admin with user autocompletes #3013
- 🐛(frontend) show right-to-left text from the right in the editor #2919
- 🐛(yhub) report unready when valkey only accepts reads #3035
- 🐛(yhub) restart when valkey turns read-only after a failover #3035
- 🐛(frontend) hide the sub-doc creation entries without children_create #3031
- 🔒️(backend) duplicate a sub doc in its parent only with rights on it #2979
- 🐛(frontend) add the copy of a sub doc to the tree only if it lands
  there #2979
- 🐛(backend) name users without an email instead of returning a 500 #2943
- 🐛(frontend) show an error page when the current user cannot be loaded #2943
- 🐛(frontend) pick a mention with a click in the comments sidebar #3055
- 🐛(backend) stop throttling the config endpoint #3005
- 🐛(backend) throttle anonymous users per browser, not per IP address #3005

Signed-off-by: Manuel Raynaud <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants