Skip to content

fix(ci): standardize image tag step ID across integration workflows#646

Merged
Wikid82 merged 2 commits intomainfrom
hotfix/ci
Feb 4, 2026
Merged

fix(ci): standardize image tag step ID across integration workflows#646
Wikid82 merged 2 commits intomainfrom
hotfix/ci

Conversation

@Wikid82
Copy link
Owner

@Wikid82 Wikid82 commented Feb 4, 2026

No description provided.

Copilot AI review requested due to automatic review settings February 4, 2026 14:16
@Wikid82 Wikid82 merged commit 8b3e281 into main Feb 4, 2026
5 of 7 checks passed
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR standardizes the GitHub Actions step ID used for determining the Docker image tag across CI integration workflows so downstream steps can reference the same output name.

Changes:

  • Renames the “Determine image tag” step id from image to determine-tag in multiple workflows.
  • Updates image pull / fallback / SHA validation steps to reference the renamed step outputs where applicable.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
.github/workflows/waf-integration.yml Renames the image-tag step ID and updates downstream references.
.github/workflows/rate-limit-integration.yml Renames the image-tag step ID and updates downstream references.
.github/workflows/e2e-tests.yml Renames the image-tag step ID.
.github/workflows/crowdsec-integration.yml Renames the image-tag step ID and updates downstream references.
.github/workflows/cerberus-integration.yml Renames the image-tag step ID and updates downstream references.

Comment on lines +202 to 203
IMAGE_NAME="ghcr.io/${{ github.repository_owner }}/charon:${{ steps.determine-tag.outputs.tag }}"
echo "Pulling image: $IMAGE_NAME"
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

The step id determine-tag contains a hyphen but is referenced using dot notation (steps.determine-tag...). In GitHub Actions expressions, - is parsed as an operator, so this will not resolve the step outputs and can break the workflow. Rename the step id to use underscores (e.g., determine_tag) and update references, or use bracket notation when accessing the step outputs.

Copilot uses AI. Check for mistakes.
Comment on lines 201 to 205
command: |
IMAGE_NAME="ghcr.io/${{ github.repository_owner }}/charon:${{ steps.image.outputs.tag }}"
IMAGE_NAME="ghcr.io/${{ github.repository_owner }}/charon:${{ steps.determine-tag.outputs.tag }}"
echo "Pulling image: $IMAGE_NAME"
docker pull "$IMAGE_NAME"
docker tag "$IMAGE_NAME" charon:local
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

This workflow defines two separate steps with the same id pull_image (one earlier in the job and another later). Step ids must be unique; duplicates can make the workflow invalid or cause steps.pull_image.* to resolve unpredictably. Rename/remove the duplicate step id so each step has a unique identifier.

Copilot uses AI. Check for mistakes.
# For PRs: pr-{number}-{sha}, For branches: {sanitized-branch}-{sha}
- name: Determine image tag
id: image
id: determine-tag
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

id: determine-tag is hard to reference safely with the usual dot notation in expressions because of the hyphen. The repo already uses underscore step ids that are compatible with dot notation (e.g., .github/workflows/auto-versioning.yml uses id: determine_tag). Consider renaming this to determine_tag for consistency and to avoid expression parsing issues if outputs are referenced later.

Copilot uses AI. Check for mistakes.
Comment on lines +165 to 166
IMAGE_NAME="ghcr.io/${{ github.repository_owner }}/charon:${{ steps.determine-tag.outputs.tag }}"
echo "Pulling image: $IMAGE_NAME"
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

The step id determine-tag contains a hyphen but is referenced using dot notation (steps.determine-tag...). In GitHub Actions expressions, - is parsed as an operator, so this will not resolve the step outputs and can break the workflow. Rename the step id to use underscores (e.g., determine_tag) and update references, or use bracket notation when accessing the step outputs.

Copilot uses AI. Check for mistakes.
Comment on lines +165 to 166
IMAGE_NAME="ghcr.io/${{ github.repository_owner }}/charon:${{ steps.determine-tag.outputs.tag }}"
echo "Pulling image: $IMAGE_NAME"
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

The step id determine-tag contains a hyphen but is referenced using dot notation (steps.determine-tag...). In GitHub Actions expressions, - is parsed as an operator, so this will not resolve the step outputs and can break the workflow. Rename the step id to use underscores (e.g., determine_tag) and update references, or use bracket notation when accessing the step outputs.

Copilot uses AI. Check for mistakes.
Comment on lines +165 to 166
IMAGE_NAME="ghcr.io/${{ github.repository_owner }}/charon:${{ steps.determine-tag.outputs.tag }}"
echo "Pulling image: $IMAGE_NAME"
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

The step id determine-tag contains a hyphen but is referenced using dot notation (steps.determine-tag...). In GitHub Actions expressions, - is parsed as an operator, so this will not resolve the step outputs and can break the workflow. Rename the step id to use underscores (e.g., determine_tag) and update references, or use bracket notation when accessing the step outputs.

Copilot uses AI. Check for mistakes.
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.

3 participants