Skip to content

ci: resolve CodeQL code-scanning alerts - #294

Merged
dekobon merged 3 commits into
mainfrom
ci/codeql-alerts
Oct 19, 2026
Merged

dekobon merged 3 commits into
mainfrom
ci/codeql-alerts

Conversation

@dekobon

@dekobon dekobon commented Oct 19, 2026

Copy link
Copy Markdown
Owner

Resolves the open CodeQL code-scanning alerts.

rust/cleartext-logging (false positives)

CodeQL's sensitive-name heuristic classifies ParseError::InvalidAccount
(a public Azure storage-account name) as a secret and flags every
{err:?} in a test assert. Dismissals don't stick because the alerts
re-open whenever lines shift.

  • Move url's unit tests to src/url/tests.rs (pure move).
  • Add .github/codeql/codeql-config.yml with paths-ignore for
    tests/**, spec/**, and src/**/tests.rs. Production code remains
    fully analysed.

actions/cache-poisoning/poisonable-step

workflow_dispatch ran in main's cache scope but checked out a ref from
the tag input. The input is removed: dispatch must now start from the
tag ref (gh workflow run release.yml --ref <tag>), preflight rejects
non-tag refs, and all jobs check out the event SHA.

Trade-off: a dispatch runs the workflow file as it exists at that tag.
The release docs are updated accordingly.

Verification

  • make pre-commit and actionlint pass.
  • After merge, confirm the open alert count on main drops to zero.

workflow_dispatch ran with main's cache scope but checked out a ref
taken from the `tag` input, which CodeQL flags as a cache-poisoning
path. Drop the input: a dispatch must now start from the tag itself,
preflight rejects non-tag refs, and every job checks out the event
SHA instead of an explicit ref.
@dekobon
dekobon merged commit 5e96f3a into main Oct 19, 2026
11 checks passed
@dekobon
dekobon deleted the ci/codeql-alerts branch October 19, 2026 15:43
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.

1 participant