Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 3, 2025

Problem

The workflow was failing on every run with the error:

##[error]Unable to resolve action oleg-chudnovskiy/docker-pull-remote-image-digest, repository not found

This was caused by using a third-party GitHub action oleg-chudnovskiy/docker-pull-remote-image-digest@v1 that doesn't exist or has been removed.

Solution

Replaced the non-existent action with a simple shell script that uses Docker's built-in docker manifest inspect command to fetch the remote image digest:

- name: Get digest of the remote 'latest' image
  if: github.event_name != 'push'
  id: remote_digest
  run: |
    # Try to get the digest of the remote image, handle case when it doesn't exist
    DIGEST=$(docker manifest inspect ghcr.io/${{ github.repository }}:latest 2>/dev/null | jq -r '.config.digest' || echo "")
    echo "digest=$DIGEST" >> $GITHUB_OUTPUT
    echo "Remote digest: $DIGEST"

This approach:

  • Uses standard Docker CLI tools available in GitHub Actions runners
  • Handles errors gracefully when the image doesn't exist yet (first run)
  • Maintains the same workflow logic and outputs
  • Eliminates the dependency on unmaintained third-party actions

Testing

  • ✅ YAML syntax validated
  • ✅ Workflow file parses correctly
  • ✅ Minimal changes (only modified the failing step)

Fixes https://github.com/GordonBeeming/copilot_here/actions/runs/18219132128

Original prompt

help me fix my build please

https://github.com/GordonBeeming/copilot_here/actions/runs/18219132128


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copilot AI changed the title [WIP] help me fix my build please https://github.com/GordonBeeming/copilot_here/actions/runs/18219132128 Fix workflow build failure by replacing non-existent GitHub action Oct 3, 2025
Copilot AI requested a review from GordonBeeming October 3, 2025 10:03
@GordonBeeming GordonBeeming marked this pull request as ready for review October 3, 2025 10:04
Copilot AI review requested due to automatic review settings October 3, 2025 10:04
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 fixes a GitHub Actions workflow failure by replacing a non-existent third-party action with a native shell script solution. The workflow was failing because it referenced oleg-chudnovskiy/docker-pull-remote-image-digest@v1, which doesn't exist or has been removed.

  • Removes dependency on non-existent third-party GitHub action
  • Implements equivalent functionality using Docker CLI and jq
  • Maintains same workflow outputs and error handling

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@GordonBeeming GordonBeeming merged commit 477249b into main Oct 3, 2025
1 check passed
@GordonBeeming GordonBeeming deleted the copilot/fix-d1265103-3cb2-4fbb-9820-e35b760cf5b1 branch October 3, 2025 10:06
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.

2 participants