Skip to content

Noah Bates testing branch integration (intro day)#1062

Open
noahsbates wants to merge 3 commits intomainfrom
noah-bates-testing
Open

Noah Bates testing branch integration (intro day)#1062
noahsbates wants to merge 3 commits intomainfrom
noah-bates-testing

Conversation

@noahsbates
Copy link

No description provided.

@gitguardian
Copy link

gitguardian bot commented Feb 8, 2026

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secret in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
26951809 Triggered OpenSSH Private Key ce82e46 github_ssh_1 View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: eb2eef90fd

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@@ -0,0 +1,7 @@
-----BEGIN OPENSSH PRIVATE KEY-----

Choose a reason for hiding this comment

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

P0 Badge Remove committed private SSH key material

This commit introduces a full OpenSSH private key into version control, which means anyone with read access to the repository (including forks, clones, and CI logs that surface diffs) can potentially use it to authenticate as that identity until the key is revoked. Even if this was for testing, secrets in git history are long-lived and should be treated as compromised immediately.

Useful? React with 👍 / 👎.

Comment on lines +8 to +19
"Unique comment id"
id: ID!
"Course identifier (cs-course-id)"
courseId: String!
"User id of the comment author"
createdBy: String!
"Comment body text"
body: String!
"When the comment was created (ISO 8601)"
createdAt: String!
"When the comment was last updated (ISO 8601)"
updatedAt: String!
Copy link
Contributor

Choose a reason for hiding this comment

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

Too many comments

courseComments: async (_, { courseId, userId }) => {
try {
const comments = await getCourseComments(courseId, userId ?? undefined);
return comments as unknown as DiscussionModule.DiscussionComment[];
Copy link
Contributor

Choose a reason for hiding this comment

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

It's somewhat acceptable, but try to avoid the as unknown as pattern. The formatter should ensure comments are put into the correct format


const _id = doc._id;
if (!_id)
throw new GraphQLError("Comment missing _id", {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this actually indicates that something went wrong with creating your document

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