Skip to content

security: clear GitHub alerts and refresh tooling - #233

Merged
mobileskyfi merged 3 commits into
mainfrom
agent/github-security-cleanup
Aug 7, 2026
Merged

security: clear GitHub alerts and refresh tooling#233
mobileskyfi merged 3 commits into
mainfrom
agent/github-security-cleanup

Conversation

@mobileskyfi

@mobileskyfi mobileskyfi commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • dismiss six CodeQL false positives with site-specific Security-tab audit justifications
  • update actions/setup-node from v6 to v7
  • update Biome from 2.5.2 to 2.5.6 with bun.lock, schema, and formatter output kept in lockstep
  • correct the security guidance after live CodeQL 2.26.2 proved inline suppression comments unreliable

Why

The Security tab had five shared-parser clear-text logging over-taints plus one intentional maintainer-cache network-to-file finding. Each was reviewed through its SARIF flow and dismissed with an audit justification. A PR experiment then proved that both codeql and legacy lgtm inline comments were ignored even on exact sink lines, so the source stays stable to preserve the audited fingerprints and the repo guidance now records that evidence.

Separately, Dependabot PR #178 changed package.json without bun.lock or the matching Biome schema/formatter changes, while PR #229 could not receive a substantive CodeRabbit review because the repo intentionally ignores Dependabot-authored PRs. This human-authored replacement keeps the Bun dependency graph reproducible and allows the normal review gates to run.

Supersedes #178 and #229.

Validation

  • bun install --frozen-lockfile
  • bun run lint:ci
  • bun run test (2,395 passed, 0 failed)
  • bun run build

RouterOS transport behavior is unchanged; no new CHR integration evidence is required for this maintenance patch.

Summary by CodeRabbit

  • Documentation

    • Clarified CodeQL alert-handling guidance, including when to dismiss alerts and how to document exceptions.
  • Chores

    • Updated release and code-quality tooling to newer supported versions.
    • Refreshed configuration references for improved tooling compatibility.
  • Tests

    • Reformatted test cases for improved readability without changing test behavior or coverage.

@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown

Review Change Stack

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 6cd16d3c-8b6a-467e-846b-68772dad75c5

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

The PR updates CodeQL suppression guidance, upgrades Biome and the release workflow action, and reformats three parameterized tests without changing test behavior.

Changes

Maintenance updates

Layer / File(s) Summary
CodeQL suppression guidance
.github/instructions/github-security-quality.instructions.md
The guidance no longer recommends inline codeql[...] or lgtm[...] comments. It documents Security-tab dismissals with written justification and query filtering.
Toolchain and release updates
.github/workflows/release.yaml, biome.json, package.json
The release workflow uses actions/setup-node@v7. Biome references and uses version 2.5.6.
Parameterized test formatting
test/unit/explain-args.test.ts, test/unit/explain-write.test.ts
Three parameterized tests use multiline formatting. Cases and assertions remain unchanged.

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

Possibly related PRs

  • tikoci/centrs#161: Introduced the inline CodeQL suppression guidance updated by this PR.
  • tikoci/centrs#167: Also updates .github/instructions/github-security-quality.instructions.md with CodeQL guidance changes.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main changes: CodeQL alert cleanup and tooling updates.
Description check ✅ Passed The description explains the changes, rationale, validation, and RouterOS assumptions, but it omits the template's Links and Change type sections.
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.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch agent/github-security-cleanup

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.

Comment thread src/cli/api.ts Fixed
Comment thread src/cli/api.ts Fixed
Comment thread src/cli/api.ts Fixed
Comment thread src/cli/devices.ts Fixed
Comment thread src/cli/devices.ts Fixed
Comment thread src/cli/settings.ts Fixed
Comment thread src/cli/settings.ts Fixed
Comment thread src/cli/terminal.ts Fixed
Comment thread src/cli/terminal.ts Fixed
Comment thread scripts/gen-explain-catalog.ts Fixed
@mobileskyfi
mobileskyfi marked this pull request as ready for review August 7, 2026 18:46
Copilot AI lite review requested due to automatic review settings August 7, 2026 18:46

Copilot AI 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.

Pull request overview

This PR updates developer/security tooling and repository guidance to reflect current CodeQL behavior, while keeping the Bun dependency graph reproducible.

Changes:

  • Bump Biome from 2.5.22.5.6, updating package.json, bun.lock, and biome.json schema in lockstep.
  • Update actions/setup-node in the release workflow from v6v7.
  • Reword security guidance to explicitly discourage relying on inline codeql[...] / lgtm[...] suppression comments, based on observed CodeQL behavior.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
test/unit/explain-write.test.ts Formatting-only tweak to the test.each invocation (no logic change).
test/unit/explain-args.test.ts Formatting-only tweaks to multi-line test.each cases (no logic change).
package.json Bumps @biomejs/biome to 2.5.6.
bun.lock Updates the lockfile to match the Biome bump and platform CLI package versions.
biome.json Updates Biome schema URL to 2.5.6 to match the pinned Biome version.
.github/workflows/release.yaml Updates actions/setup-node to v7 for the publish workflow.
.github/instructions/github-security-quality.instructions.md Updates CodeQL guidance to reflect that inline suppressions should not be relied upon.

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

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 @.github/workflows/release.yaml:
- Line 104: Update the actions/setup-node step in the release workflow to
reference a full, immutable commit SHA instead of the mutable v7 tag, while
preserving the existing setup-node configuration and registry-credential flow.
🪄 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: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 26032f2b-3131-4e3e-ba81-b0568a5da703

📥 Commits

Reviewing files that changed from the base of the PR and between e8927f8 and 47aadab.

⛔ Files ignored due to path filters (1)
  • bun.lock is excluded by !**/*.lock
📒 Files selected for processing (6)
  • .github/instructions/github-security-quality.instructions.md
  • .github/workflows/release.yaml
  • biome.json
  • package.json
  • test/unit/explain-args.test.ts
  • test/unit/explain-write.test.ts
📜 Review details
⏰ Context from checks skipped due to timeout. (2)
  • GitHub Check: copilot-pull-request-reviewer
  • GitHub Check: CHR smoke (stable)
🧰 Additional context used
📓 Path-based instructions (4)
{docs/**,.github/instructions/**,.github/**/*.yml,.github/**/*.yaml,**/*.{md,txt,dict}}

📄 CodeRabbit inference engine (AGENTS.md)

Run bun run lint:ci when changing documentation, instructions, security configuration, spelling dictionaries, or workflow files.

Files:

  • .github/workflows/release.yaml
  • .github/instructions/github-security-quality.instructions.md
**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

**/*.{ts,tsx}: Transport or RouterOS-touching code is not done until bun run test:integration passes.
Do not silently fall back to another protocol when the caller pinned --via.
Do not make generated output the hand-edited source of truth.
Do not disable validation to make a test pass; validation is part of the product.

Files:

  • test/unit/explain-write.test.ts
  • test/unit/explain-args.test.ts
.github/instructions/*.instructions.md

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

Store Copilot's path-specific durable instructions in .github/instructions/*.instructions.md files using applyTo front matter

When an issue requires an instruction file, read that file directly; otherwise consult the instruction map to identify applicable path-scoped rules.

Files:

  • .github/instructions/github-security-quality.instructions.md
.github/instructions/github-security-quality.instructions.md

📄 CodeRabbit inference engine (AGENTS.md)

Follow .github/instructions/github-security-quality.instructions.md for security-sensitive code and quality surfaces.

Files:

  • .github/instructions/github-security-quality.instructions.md
🪛 LanguageTool
.github/instructions/github-security-quality.instructions.md

[uncategorized] ~36-~36: The official name of this software platform is spelled with a capital “H”.
Context: ...us its written audit justification. A .github/codeql-config.yml query-filter is the ...

(GITHUB)

🪛 zizmor (1.29.0)
.github/workflows/release.yaml

[error] 104-104: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy)

(unpinned-uses)


[error] 104-104: runtime artifacts potentially vulnerable to a cache poisoning attack (cache-poisoning): enables caching by default

(cache-poisoning)

🔇 Additional comments (5)
biome.json (1)

2-2: LGTM!

package.json (1)

15-15: LGTM!

test/unit/explain-args.test.ts (1)

392-411: LGTM!

Also applies to: 485-501

test/unit/explain-write.test.ts (1)

419-425: LGTM!

.github/instructions/github-security-quality.instructions.md (1)

29-37: LGTM!

Comment thread .github/workflows/release.yaml Outdated
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.

3 participants