-
Notifications
You must be signed in to change notification settings - Fork 5
Codeowner, stale-pr and codeql #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThree new files have been added to the repository. The Estimated code review effort🎯 2 (Simple) | ⏱️ ~7 minutes Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. ✨ Finishing Touches🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (7)
.github/CODEOWNERS (1)
1-1: Add terminal newline for POSIX-friendly tooling
Some linters and tooling expect files to end with a single\n. Please append a newline after Line 1.* @Thaleszh↵ +.github/workflows/stale-pr.yml (3)
4-5: Strip trailing whitespace
Lines 4-5 include stray spaces that violate.editorconfig/ YAML-lint rules and clutter diffs.- - cron: '30 1 * * *'␠ + - cron: '30 1 * * *' @@ - workflow_dispatch:␠ + workflow_dispatch:
11-14: Consider explicit PR timers & close settings
Withdays-before-issue-stale: -1issues are ignored, but PRs inherit the default 30-day timers.
If you want PRs to be marked/closed sooner (or never), add:with: days-before-pr-stale: 14 # or -1 to disable days-before-pr-close: 7
14-14: Add newline at EOF
The file lacks a final newline (YAML-lint error)..github/workflows/codeql.yml (3)
9-15: Fix indentation underpermissions
YAML-lint flags the current 4-space indent. Two spaces are expected.permissions: - security-events: write - - packages: read + security-events: write + packages: read
20-24: Pin action versions to commit SHAs for supply-chain safety
Using floating tags (@v4,@v2) makes the build pick up unreviewed changes. GitHub recommends pinning to a verified commit SHA.
24-24: Add newline at EOF
Missing trailing newline triggers lint errors.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
.github/CODEOWNERS(1 hunks).github/workflows/codeql.yml(1 hunks).github/workflows/stale-pr.yml(1 hunks)
🧰 Additional context used
🪛 actionlint (1.7.7)
.github/workflows/codeql.yml
22-22: the runner of "github/codeql-action/init@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
24-24: the runner of "github/codeql-action/analyze@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
🪛 YAMLlint (1.37.1)
.github/workflows/codeql.yml
[warning] 11-11: wrong indentation: expected 2 but found 4
(indentation)
[error] 24-24: no new line character at the end of file
(new-line-at-end-of-file)
.github/workflows/stale-pr.yml
[error] 4-4: trailing spaces
(trailing-spaces)
[error] 5-5: trailing spaces
(trailing-spaces)
[error] 14-14: no new line character at the end of file
(new-line-at-end-of-file)
🔇 Additional comments (1)
.github/workflows/codeql.yml (1)
22-24: Verify action-lint warning about outdated runner
actionlintreports thegithub/codeql-action/*@v2runner image as “too old”. This may refer to the Node-12 deprecation. Confirm that the action’s latest minor release is used (e.g.@v2.14.2) or upgrade to the newly-released@v3if available.
Description
This PR adds configuration updates to improve repository quality and security:
CODEOWNERSfile assigning @Thaleszh as the maintainer.stale-pr.ymlworkflow to automatically mark and close stale issues and pull requests.codeql.ymlworkflow to enable automated code scanning for security vulnerabilities.These changes are part of the repository hardening efforts to ensure proper review assignment, automated cleanup of old contributions, and vulnerability detection.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
These are configuration-level changes and do not affect runtime code directly.
CODEOWNERS.stale-pr.ymlandcodeql.ymlworkflows from the working setup inkiijs-sdk.No unit or integration tests are required for this PR.