Skip to content

WA for anonymous access in github - #4513

Merged
dtrawins merged 1 commit into
mainfrom
github-wa
Sep 7, 2026
Merged

WA for anonymous access in github#4513
dtrawins merged 1 commit into
mainfrom
github-wa

Conversation

@dtrawins

@dtrawins dtrawins commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator

🛠 Summary

based on https://github.com/orgs/community/discussions/206581

🧪 Checklist

  • Unit tests added.
  • The documentation updated.
  • Change follows security best practices.
    ``

Copilot AI lite review requested due to automatic review settings September 7, 2026 06:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The HTTP/1.1 workaround is applied broadly (global image config and stage-wide env) and should be scoped to GitHub/network git commands to avoid unintended side effects.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR adds a workaround to mitigate Git authentication failures related to HTTP/2 by forcing Git to use HTTP/1.1 during container builds and in the on-commit CI pipeline.

Changes:

  • Configure Git in Ubuntu and Red Hat build Dockerfiles to use HTTP/1.1.
  • Configure the Jenkins on-commit pipeline to force Git HTTP/1.1 via injected Git config environment variables.
File summaries
File Description
Dockerfile.ubuntu Adds a global Git config to force HTTP/1.1 during image build steps.
Dockerfile.redhat Adds a global Git config to force HTTP/1.1 during image build steps.
ci/build_test_OnCommit.groovy Adds stage-level env vars to force Git http.version=HTTP/1.1 during the Configure stage.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 3
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread Dockerfile.redhat
Comment on lines +51 to +52
## WA for authentication issues with git over HTTP/2
RUN git config --global http.version HTTP/1.1

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Good point.

Comment thread Dockerfile.ubuntu
Comment on lines +53 to +54
## WA for authentication issues with git over HTTP/2
RUN git config --global http.version HTTP/1.1

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Good point.

Comment on lines +46 to +50
environment {
GIT_CONFIG_COUNT = '1'
GIT_CONFIG_KEY_0 = 'http.version'
GIT_CONFIG_VALUE_0 = 'HTTP/1.1'
}
@dtrawins
dtrawins merged commit 9c7c1fa into main Sep 7, 2026
2 checks passed
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.

5 participants