Skip to content

Conversation

@lihongyan1
Copy link
Contributor

@lihongyan1 lihongyan1 commented Jan 27, 2026

PR #984 failed to fix issue #956, propose fix again

Fetching the repository
  /usr/bin/git -c protocol.version=2 fetch --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/* +refs/tags/*:refs/tags/*
  remote: Duplicate header: "Authorization"
  Error: fatal: unable to access 'https://github.com/rhobs/observability-operator/': The requested URL returned error: 400
  The process '/usr/bin/git' failed with exit code 128
  Waiting 19 seconds before trying again
  /usr/bin/git -c protocol.version=2 fetch --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/* +refs/tags/*:refs/tags/*
  remote: Duplicate header: "Authorization"
every parent workflow already checks out the repository before calling the composite   
  actions:                                                                                                          
                                                                                                                    
  - .github/workflows/olm-stable.yaml:14 - actions/checkout@v6                                                      
  - .github/workflows/package-operator-stable.yaml:14 - actions/checkout@v6                                         
  - .github/workflows/release.yaml:27 - actions/checkout@v6                                                         
  - .github/workflows/release.yaml:137 - actions/checkout@v6                                                        
                                                                                                                    
  The composite actions were doing redundant checkouts with actions/checkout@v3, which caused:                      
                                                                                                                    
  1. First checkout: Parent workflow (v6) sets Authorization header                                                 
  2. Second checkout: Composite action (v3) sets Authorization header again                                         
  3. Result: Duplicate Authorization headers → Error                                                                
                                                                                                                    
  Why removing is safe:                                                                                             
                                                                                                                    
  - Composite actions share the workspace with the calling workflow                                                 
  - The code is already checked out by the parent workflow                                                          
  - The composite actions can access the repository without checking out again

@openshift-ci
Copy link

openshift-ci bot commented Jan 27, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lihongyan1

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@lihongyan1 lihongyan1 requested a review from jan--f January 28, 2026 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant