Skip to content

docs: finalize ADR-021 — CodeQL deferred, repo stays private (#113)#242

Merged
oak-pokemon-lab merged 1 commit into
mainfrom
docs/adr-021-codeql-final-decision
May 16, 2026
Merged

docs: finalize ADR-021 — CodeQL deferred, repo stays private (#113)#242
oak-pokemon-lab merged 1 commit into
mainfrom
docs/adr-021-codeql-final-decision

Conversation

@edsonesf

Copy link
Copy Markdown
Owner

Summary

Finalizes ADR-021 — CodeQL deferred, repository stays private. Documents the platform limitation (GHAS required for private repos on GitHub Free/Student) and confirms the existing security stack (Semgrep + Bandit + pip-audit) as sufficient.

Changes

  • docs/design-decisions.md — ADR-021 status updated from "Pending" to "Decided", added local CLI alternative reference, removed outdated Copilot section (folded into constraints)

Checklist

  • No hardcoded secrets
  • Commit messages follow the standard

Closes

Closes #113

Reviewers

🤖 Bot reviewers: please tag @edsonesf in your feedback so I can act on it.

@gemini-code-assist

Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request finalizes the architectural decision regarding repository visibility and security tooling. It addresses platform-specific limitations encountered with GitHub Advanced Security and Copilot on private repositories, ensuring the project maintains robust security coverage through alternative open-source tools while documenting the path forward for future visibility changes.

Highlights

  • ADR-021 Finalization: Updated the status of ADR-021 from 'Pending' to 'Decided', confirming that the repository will remain private and CodeQL usage is deferred.
  • Security Stack Confirmation: Formally adopted Semgrep, Bandit, and pip-audit as the primary security scanning stack to bypass GitHub Advanced Security limitations on private repositories.
  • Documentation of Constraints: Added details regarding subscription-tier restrictions for CodeQL and GitHub Copilot PR reviews, and provided a reference for local CodeQL CLI usage.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@edsonesf
edsonesf requested a review from oak-pokemon-lab May 16, 2026 12:33
@edsonesf edsonesf self-assigned this May 16, 2026
@edsonesf edsonesf added docs Documentation ci-cd CI/CD pipeline related labels May 16, 2026
@edsonesf edsonesf added this to the S5 — Testing milestone May 16, 2026

@amazon-q-developer amazon-q-developer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@edsonesf This PR successfully finalizes ADR-021 with clear documentation of the platform constraints and decision rationale. The changes are well-structured and appropriate for closing issue #113.

Summary:
✅ Status updated from "Pending" to "Decided"
✅ Clear documentation of GHAS platform limitation
✅ Comprehensive security scanning stack documented (Semgrep + Bandit + pip-audit)
✅ Local CodeQL CLI alternative referenced
✅ Impact section clearly lists closed issues and maintains security coverage
✅ No hardcoded secrets
✅ Commit messages follow standard
✅ Scope discipline maintained (single documentation file)

No blocking issues found. This documentation change appropriately captures the architectural decision and its rationale.


You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request updates ADR-021 in docs/design-decisions.md to finalize the decision to keep the repository private and defer CodeQL integration due to GitHub Advanced Security licensing constraints. The security strategy now focuses on Bandit, Semgrep, and pip-audit, with a local CodeQL CLI option documented. A review comment correctly identifies a potential broken link to documentation located in a pull request that was closed without being merged, which could lead to a missing file in the main branch.

Comment thread docs/design-decisions.md
GitHub Copilot automated PR review (configured in repository settings) does not work for two reasons:
1. **Private repo + student subscription** — Copilot PR review requires either a public repo or a GitHub Enterprise subscription. The student subscription does not qualify.
2. **Token exhaustion** — Copilot tokens are consumed by manual review requests (`request_copilot_review`). Tokens reset on May 15, 2026. Student subscription cannot be upgraded.
**Local alternative documented**: `.agents/issues/237/codeql.md` contains a step-by-step guide for running CodeQL CLI locally (database creation, analysis, SARIF viewing).

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

@edsonesf The ADR references .agents/issues/237/codeql.md as the documentation for the local CodeQL alternative. However, line 471 states that PR #237 was closed without merge. If the content of that PR was not merged into the main branch, this file will not exist in the repository, leading to a broken reference. Please ensure the documentation for the local alternative is actually present in the repository or update the reference to a valid path.

@edsonesf edsonesf May 16, 2026

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

The path .agents/issues is explicit ignored by .gitnore and is deemed for local host developtment and agents only.
Considering that CodeQL may be used in future on a local-only purposes, there is no relevance adding it to the repository for now.

@oak-pokemon-lab oak-pokemon-lab left a comment

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.

We do the best we can with the resources we have.

@oak-pokemon-lab

Copy link
Copy Markdown
Collaborator

"Even a type disadvantage can be overcome with a strong bond." Professor Oak

@oak-pokemon-lab
oak-pokemon-lab merged commit 184b4e8 into main May 16, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-cd CI/CD pipeline related docs Documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI/CD: Revisit CodeQL — discuss repo visibility with supervisor

2 participants