Skip to content

Conversation

@vivekr-splunk
Copy link
Collaborator

Summary

Fixes the SBOM generation step that fails with "unauthorized" error.

Problem

The step was failing with:

Root Cause

  • The build-and-push-images job pushes the operator image to GHCR
  • The package job tries to pull that same image to generate SBOM
  • But the package job wasn't authenticated to GHCR

Solution

Added Docker login step for ghcr.io before the SBOM generation step, using:

  • username: ${{ github.actor }}
  • password: ${{ secrets.GITHUB_TOKEN }}

This allows Syft to pull the image for scanning.

Testing

  • Workflow syntax validates
  • After merge, retry v0.1.0 release

Related

  • Fixes release workflow failure
  • Required for v0.1.0 release completion

🤖 Generated with Claude Code

Co-Authored-By: Claude noreply@anthropic.com

- Add Docker login step for ghcr.io before generating SBOM
- Allows Syft to pull the operator image for scanning
- Fixes: 'unauthorized' error when generating SBOM

The package job needs to authenticate to GHCR to pull the image
that was just built in the build-and-push-images job.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings November 19, 2025 03:58
Copilot finished reviewing on behalf of vivekr-splunk November 19, 2025 04:00
Copy link

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 the SBOM generation step that was failing with an "unauthorized" error when trying to pull the operator image from GHCR.

Key Changes:

  • Added Docker login step for GHCR authentication in the package job before SBOM generation
  • Uses the same docker/login-action@v3 pattern as existing login steps in the workflow

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 19489274144

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 36.822%

Totals Coverage Status
Change from base Build 19484939512: 0.0%
Covered Lines: 2336
Relevant Lines: 6344

💛 - Coveralls

@vivekr-splunk vivekr-splunk merged commit 3d7b6f2 into main Nov 19, 2025
14 checks passed
@vivekr-splunk vivekr-splunk deleted the fix/add-ghcr-login-sbom branch November 19, 2025 04:05
@vivekr-splunk vivekr-splunk restored the fix/add-ghcr-login-sbom branch November 19, 2025 04:46
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