Skip to content

Release: 2.1.3-37 - #202

Merged
github-actions[bot] merged 6 commits into
masterfrom
development
Nov 18, 2026
Merged

github-actions[bot] merged 6 commits into
masterfrom
development

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Automated release for tag 2.1.3-37.
The workflow tests the resulting merge commit before tagging
and publishing the Docker image.

Summary by Sourcery

Ensure release tags are created or updated only after validation succeeds and remain aligned with the published source commit.

New Features:

  • Add post-validation release tag creation and atomic replacement to the Docker publication workflow.
  • Restore missing release tags for previously successful publications and verify tag integrity after publication.

Bug Fixes:

  • Prevent releases from publishing when the release tag does not resolve to the tested source commit.

Enhancements:

  • Move tag mutation into the validated publication workflow and add safeguards for concurrent or stale tag changes.

CI:

  • Extend release workflow dispatch parameters and permissions to coordinate tag management with Docker image publication.

@github-actions
github-actions Bot merged commit 782d1af into master Nov 18, 2026
41 checks passed
@coderabbitai

coderabbitai Bot commented Nov 18, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 535d46bd-d7cf-474b-8122-10f2f2f9ced0

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • 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

@sourcery-ai

sourcery-ai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Implementation

Move creation and replacement of the release tag into the Docker workflow after validation, while checking source identity, publication history, and the expected ref before mutation.

  • .github/workflows/docker.image.yml L683-697, L748-766, L857-1009 (+1 small edits)

Remove the separate merge-commit test and tag-mutation steps so the release workflow dispatches one validated publication pipeline, restoring only a missing tag for an already successful publication.

  • .github/workflows/release.yml L482-509, L544-578 (+3 small edits)

Configuration

Add workflow-dispatch inputs for deferred tag creation and an expected tag ref SHA, and grant the release job permissions needed to verify and mutate refs.

  • .github/workflows/docker.image.yml L36-45, L514-517, L593

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Hey - I've found 2 issues

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path=".github/workflows/docker.image.yml" line_range="983-1007" />
<code_context>
+          fi
+
+      - name: Verify existing release tag immediately before publication
+        if: ${{ github.event_name == 'workflow_dispatch' && inputs.publish && !inputs.create_release_tag && inputs.image_version != '' }}
+        env:
+          GH_TOKEN: ${{ github.token }}
+          REPOSITORY: ${{ github.repository }}
+          RELEASE_TAG: ${{ inputs.image_version }}
+        run: |
+          set -euo pipefail
+          tag_pattern='^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}-[0-9]{1,3}$'
+          if [[ ! "$RELEASE_TAG" =~ $tag_pattern ]]; then
+            echo "Image version '$RELEASE_TAG' is not a release tag; skipping Git tag verification."
+            exit 0
+          fi
+          tag_json=$(gh api "repos/$REPOSITORY/git/ref/tags/$RELEASE_TAG")
+          tag_type=$(jq -r '.object.type' <<< "$tag_json")
</code_context>
<issue_to_address>
**Image tag diverges from release tag**

When an authorized actor moves the release tag after verification but before the registry push, the workflow verifies the Git ref before Build and push, but another actor can retarget the ref after that check and before the registry push. The image is then published from the tested commit under a version tag whose Git ref points to a different commit.

Prevent concurrent release-tag changes during publication, or revalidate the tag at the publication boundary and abort if it no longer resolves to the tested SHA.
</issue_to_address>

### Comment 2
<location path=".github/workflows/docker.image.yml" line_range="857" />
<code_context>
           password: ${{ env.QUAY_TOKEN }}

       # Keep this step name stable: release-history scripts use it to detect publication attempts.
+      - name: Create or verify release tag after all validation jobs pass
+        if: ${{ github.event_name == 'workflow_dispatch' && inputs.publish && inputs.create_release_tag }}
+        env:
</code_context>
<issue_to_address>
**Tag exists without published image**

When tag creation is enabled and no registry credentials produce image tags, or a registry push fails after the tag is created, the tag is written before `Build and push`; when `Prepare` produces no tags, the build step is skipped and the workflow can still succeed, while a later push failure can leave only some registries updated. Callers see a release tag without a fully published image.

Require nonempty publication tags before mutating the ref, and create the release tag only after image publication succeeds (or compensate for failed publication).
</issue_to_address>

Sourcery assessment

Needs a human reviewer. 2 findings to address first, and if the release workflow tags or publishes the wrong commit, consumers may pull images for a release that does not match its intended source. Reverting the workflow cannot undo a moved tag already observed by others or images already published.

Blocking findings: .github/workflows/docker.image.yml:1007, .github/workflows/docker.image.yml:857


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment on lines +983 to +1007
if: ${{ github.event_name == 'workflow_dispatch' && inputs.publish && !inputs.create_release_tag && inputs.image_version != '' }}
env:
GH_TOKEN: ${{ github.token }}
REPOSITORY: ${{ github.repository }}
RELEASE_TAG: ${{ inputs.image_version }}
run: |
set -euo pipefail
tag_pattern='^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}-[0-9]{1,3}$'
if [[ ! "$RELEASE_TAG" =~ $tag_pattern ]]; then
echo "Image version '$RELEASE_TAG' is not a release tag; skipping Git tag verification."
exit 0
fi
tag_json=$(gh api "repos/$REPOSITORY/git/ref/tags/$RELEASE_TAG")
tag_type=$(jq -r '.object.type' <<< "$tag_json")
tag_sha=$(jq -r '.object.sha' <<< "$tag_json")
while [[ "$tag_type" == "tag" ]]; do
tag_json=$(gh api "repos/$REPOSITORY/git/tags/$tag_sha")
tag_type=$(jq -r '.object.type' <<< "$tag_json")
tag_sha=$(jq -r '.object.sha' <<< "$tag_json")
done
tested_sha=$(git rev-parse HEAD)
if [[ "$tag_type" != "commit" || "$tag_sha" != "$tested_sha" ]]; then
echo "::error::Release tag $RELEASE_TAG does not resolve to tested source $tested_sha."
exit 1
fi

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Medium · Image tag diverges from release tag

When an authorized actor moves the release tag after verification but before the registry push, the workflow verifies the Git ref before Build and push, but another actor can retarget the ref after that check and before the registry push. The image is then published from the tested commit under a version tag whose Git ref points to a different commit.

Prevent concurrent release-tag changes during publication, or revalidate the tag at the publication boundary and abort if it no longer resolves to the tested SHA.

Prompt for AI agents
In `.github/workflows/docker.image.yml` at lines 983-1007:

**Image tag diverges from release tag**

When an authorized actor moves the release tag after verification but before the registry push, the workflow verifies the Git ref before Build and push, but another actor can retarget the ref after that check and before the registry push. The image is then published from the tested commit under a version tag whose Git ref points to a different commit.

Prevent concurrent release-tag changes during publication, or revalidate the tag at the publication boundary and abort if it no longer resolves to the tested SHA.

password: ${{ env.QUAY_TOKEN }}

# Keep this step name stable: release-history scripts use it to detect publication attempts.
- name: Create or verify release tag after all validation jobs pass

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Medium · Tag exists without published image

When tag creation is enabled and no registry credentials produce image tags, or a registry push fails after the tag is created, the tag is written before Build and push; when Prepare produces no tags, the build step is skipped and the workflow can still succeed, while a later push failure can leave only some registries updated. Callers see a release tag without a fully published image.

Require nonempty publication tags before mutating the ref, and create the release tag only after image publication succeeds (or compensate for failed publication).

Prompt for AI agents
In `.github/workflows/docker.image.yml` at line 857:

**Tag exists without published image**

When tag creation is enabled and no registry credentials produce image tags, or a registry push fails after the tag is created, the tag is written before `Build and push`; when `Prepare` produces no tags, the build step is skipped and the workflow can still succeed, while a later push failure can leave only some registries updated. Callers see a release tag without a fully published image.

Require nonempty publication tags before mutating the ref, and create the release tag only after image publication succeeds (or compensate for failed publication).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant