Wait for queued Harbor scans before signing, not only running ones #2

Merged
Patrick merged 1 commit from patrick/wait-for-pending-scan into main 2026-11-16 14:41:36 -05:00 AGit
Owner

Orbital's main build failed to sign the laravel image. Harbor refused the pull because the image's scan was still Pending (queued behind a busy scanner), and the signing retry only recognised Running, so it failed on the first attempt.

  • What changes: the retry now waits while the scan is Pending, Queued, Scheduled or Running, for up to 20 minutes (80 × 15s).
  • What stays the same: a real policy violation (an image with Critical vulnerabilities, like the Haraka 3.0.5 image) still fails immediately.

Checked: the matcher against the three real error messages: Pending → wait, Running → wait, vulnerability violation → fail. The workflow parses as valid YAML.

🤖 Generated with Claude Code

Orbital's `main` build failed to sign the `laravel` image. Harbor refused the pull because the image's scan was still **Pending** (queued behind a busy scanner), and the signing retry only recognised **Running**, so it failed on the first attempt. - **What changes:** the retry now waits while the scan is Pending, Queued, Scheduled or Running, for up to 20 minutes (80 × 15s). - **What stays the same:** a real policy violation (an image with Critical vulnerabilities, like the Haraka 3.0.5 image) still fails immediately. **Checked:** the matcher against the three real error messages: Pending → wait, Running → wait, vulnerability violation → fail. The workflow parses as valid YAML. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Wait for queued Harbor scans before signing, not only running ones
Some checks failed
orbital-cosign.yml / Wait for queued Harbor scans before signing, not only running ones (pull_request) Failing after 0s
orbital-cosign.yml / Merge pull request 'Wait for queued Harbor scans before signing, not only running ones' (#2) from patrick/wait-for-pending-scan into main (pull_request) Failing after 0s
e2d74991c7
Orbital's main build failed signing the laravel image: Harbor refused
the pull because its scan was still "Pending" (queued behind a busy
scanner), and the retry only recognised "Running", so it failed on the
first try.

Keep retrying while the scan is Pending, Queued, Scheduled or Running,
for up to 20 minutes (80 x 15s). A real policy violation (an image with
Critical vulnerabilities) still fails immediately.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
actions/.forgejo-workflows!2
No description provided.