Skip to content

use bot github credential in lint test - #83048

Merged
openshift-merge-bot[bot] merged 1 commit into
openshift:mainfrom
marcolan018:llan
Aug 6, 2026
Merged

use bot github credential in lint test#83048
openshift-merge-bot[bot] merged 1 commit into
openshift:mainfrom
marcolan018:llan

Conversation

@marcolan018

@marcolan018 marcolan018 commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

The ROSA backend lint test now uses the OpenShift CI bot's GitHub credential from the github-credentials-openshift-ci-robot-private-git-cloner secret. The secret mounts at /usr/local/github-credentials, and a temporary Git credential helper supplies the credential to GitHub operations. The configuration removes the previous OCM credential and the namespace: ci field.

@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

The ROSA backend lint test now uses a temporary Git credential helper. The helper reads the GitHub OAuth token from the mounted credentials, replacing the previous OCM URL rewrite and OCM credential mount.

Changes

ROSA backend test credentials

Layer / File(s) Summary
Configure GitHub credential access
ci-operator/config/openshift-online/rosa-backend-tests/openshift-online-rosa-backend-tests-master.yaml
The lint test creates a temporary executable Git credential helper and mounts the github-credentials-openshift-ci-robot-private-git-cloner secret at /usr/local/github-credentials. The previous OCM URL rewrite and OCM credential mount are removed.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: ssukanmi, cdoan1

🚥 Pre-merge checks | ✅ 15
✅ Passed checks (15 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: using a bot GitHub credential in the lint test.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names ✅ Passed The PR changes only CI YAML and shell credential setup; it adds no Ginkgo test declarations or dynamic test titles.
Test Structure And Quality ✅ Passed The commit changes only one generated YAML file; its lint command has no Ginkgo It blocks, cluster resources, waits, or assertions to evaluate.
Microshift Test Compatibility ✅ Passed The PR changes only one CI YAML file and adds no Ginkgo tests or test declarations, so the MicroShift compatibility check is not applicable.
Single Node Openshift (Sno) Test Compatibility ✅ Passed The diff changes only one CI YAML lint command; it adds no Ginkgo e2e tests or topology-sensitive test bodies.
Topology-Aware Scheduling Compatibility ✅ Passed The commit changes only lint-test Git credential setup and a secret mount; it adds no deployment, controller, replica, affinity, topology, node, taint, or PDB scheduling constraint.
Ote Binary Stdout Contract ✅ Passed The PR changes only a lint YAML command; no OTE binary or process-level Go code changes. Its echo calls are in a Git credential helper and emit Git protocol, not OTE output.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed The PR changes only a CI YAML lint command and GitHub credential helper; it adds no Ginkgo e2e test or IPv4/network test logic.
No-Weak-Crypto ✅ Passed The PR only adds a shell Git credential helper that reads an OAuth token; it contains no MD5, SHA1, DES, RC4, Blowfish, ECB, crypto implementation, or secret comparison.
Container-Privileges ✅ Passed The changed manifest contains no privileged:true, hostPID, hostNetwork, hostIPC, SYS_ADMIN, allowPrivilegeEscalation, or explicit root settings.
No-Sensitive-Data-In-Logs ✅ Passed The helper emits the OAuth value only through Git's credential protocol; the target has no tracing or logging of the value, and the prior URL-based exposure was removed.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@openshift-ci
openshift-ci Bot requested review from cdoan1 and ssukanmi August 6, 2026 15:02
@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 6, 2026

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@ci-operator/config/openshift-online/rosa-backend-tests/openshift-online-rosa-backend-tests-master.yaml`:
- Line 22: Remove the debug command cat /usr/local/github-credentials from the
test setup, or replace it with a non-sensitive readability check for
/usr/local/github-credentials/oauth; do not print any credential contents, and
preserve the subsequent make lint flow.
- Around line 30-31: Update the github-credentials volume reference in the
OpenShift CI configuration so it uses an existing CI secret matching the
/usr/local/github-credentials mount namespace, or change the CI commands and
mount_path to match the correct secret; do not treat github-credentials as a
user-specific github-credentials-${username} secret.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: 488755c0-f748-41d5-b47e-933fc6c24af1

📥 Commits

Reviewing files that changed from the base of the PR and between 658e1ba and b01ee58.

⛔ Files ignored due to path filters (1)
  • ci-operator/jobs/openshift-online/rosa-backend-tests/openshift-online-rosa-backend-tests-master-presubmits.yaml is excluded by !ci-operator/jobs/**
📒 Files selected for processing (1)
  • ci-operator/config/openshift-online/rosa-backend-tests/openshift-online-rosa-backend-tests-master.yaml

@marcolan018

Copy link
Copy Markdown
Contributor Author

/pj-rehearse

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@marcolan018: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@ci-operator/config/openshift-online/rosa-backend-tests/openshift-online-rosa-backend-tests-master.yaml`:
- Around line 24-29: Update the OAuth file validation in the shell check to
require that /usr/local/github-credentials/oauth is both readable and non-empty,
not merely a regular file. Keep the existing error-and-exit behavior for invalid
files, and allow Git configuration to proceed only after this validation passes.
- Line 30: Replace the global URL rewrite in the OpenShift backend test
configuration with a Git credential helper that reads
`/usr/local/github-credentials/oauth` and supplies it as the HTTPS password
without embedding the token in Git URLs or config output. Preserve an
SSH-to-HTTPS rewrite only if this job requires handling `git@github.com:`
remotes.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: b6039a6f-97e7-42ec-a7da-fc93acd2dbb7

📥 Commits

Reviewing files that changed from the base of the PR and between b01ee58 and 214812e.

📒 Files selected for processing (1)
  • ci-operator/config/openshift-online/rosa-backend-tests/openshift-online-rosa-backend-tests-master.yaml

@marcolan018

Copy link
Copy Markdown
Contributor Author

/pj-rehearse

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@marcolan018: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@marcolan018

Copy link
Copy Markdown
Contributor Author

/pj-rehearse

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@marcolan018: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@marcolan018

Copy link
Copy Markdown
Contributor Author

/pj-rehearse

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@marcolan018: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@marcolan018

Copy link
Copy Markdown
Contributor Author

/pj-rehearse

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@marcolan018: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@marcolan018

Copy link
Copy Markdown
Contributor Author

/pj-rehearse

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@marcolan018: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@ci-operator/config/openshift-online/rosa-backend-tests/openshift-online-rosa-backend-tests-master.yaml`:
- Around line 26-30: The credential helper in the get branch must be restricted
to GitHub HTTPS requests. Configure it as credential.https://github.com.helper,
validate both requested protocol and host before reading or emitting the OAuth
token, and exit silently for any other request.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: f461efc5-d18b-4324-af08-955163b94a7d

📥 Commits

Reviewing files that changed from the base of the PR and between e893a86 and 1e2dddf.

⛔ Files ignored due to path filters (1)
  • ci-operator/jobs/openshift-online/rosa-backend-tests/openshift-online-rosa-backend-tests-master-presubmits.yaml is excluded by !ci-operator/jobs/**
📒 Files selected for processing (1)
  • ci-operator/config/openshift-online/rosa-backend-tests/openshift-online-rosa-backend-tests-master.yaml

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@marcolan018: pj-rehearse could not automatically process this event because the request waited in queue for longer than 5 minutes. Use /pj-rehearse to trigger rehearsals manually.

@marcolan018

Copy link
Copy Markdown
Contributor Author

/pj-rehearse

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@marcolan018: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

[REHEARSALNOTIFIER]
@marcolan018: the pj-rehearse plugin accommodates running rehearsal tests for the changes in this PR. Expand 'Interacting with pj-rehearse' for usage details. The following rehearsable tests have been affected by this change:

Test name Repo Type Reason
pull-ci-openshift-online-rosa-backend-tests-master-lint openshift-online/rosa-backend-tests presubmit Presubmit changed
Interacting with pj-rehearse

Comment: /pj-rehearse to run up to 5 rehearsals
Comment: /pj-rehearse skip to opt-out of rehearsals
Comment: /pj-rehearse {test-name}, with each test separated by a space, to run one or more specific rehearsals
Comment: /pj-rehearse more to run up to 10 rehearsals
Comment: /pj-rehearse max to run up to 25 rehearsals
Comment: /pj-rehearse auto-ack to run up to 5 rehearsals, and add the rehearsals-ack label on success
Comment: /pj-rehearse list to get an up-to-date list of affected jobs
Comment: /pj-rehearse abort to abort all active rehearsals
Comment: /pj-rehearse network-access-allowed to allow rehearsals of tests that have the restrict_network_access field set to false. This must be executed by an openshift org member who is not the PR author

Once you are satisfied with the results of the rehearsals, comment: /pj-rehearse ack to unblock merge. When the rehearsals-ack label is present on your PR, merge will no longer be blocked by rehearsals.
If you would like the rehearsals-ack label removed, comment: /pj-rehearse reject to re-block merging.

@openshift-ci

openshift-ci Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

@marcolan018: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@marcolan018

Copy link
Copy Markdown
Contributor Author

/pj-rehearse ack

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@marcolan018: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@openshift-merge-bot openshift-merge-bot Bot added the rehearsals-ack Signifies that rehearsal jobs have been acknowledged label Aug 6, 2026
@davidleerh

Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Aug 6, 2026
@openshift-ci

openshift-ci Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: davidleerh, marcolan018

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

@openshift-merge-bot
openshift-merge-bot Bot merged commit d5af654 into openshift:main Aug 6, 2026
17 checks passed
@marcolan018
marcolan018 deleted the llan branch August 6, 2026 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. rehearsals-ack Signifies that rehearsal jobs have been acknowledged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants