Skip to content

docs(scan): say what the weekly scan actually catches - #34

Merged
altaywtf merged 1 commit into
mainfrom
docs/scan-schedule-rationale
Sep 12, 2026
Merged

docs(scan): say what the weekly scan actually catches#34
altaywtf merged 1 commit into
mainfrom
docs/scan-schedule-rationale

Conversation

@altaywtf

Copy link
Copy Markdown
Member

Problem

The caller comment says the weekly schedule exists so that detector rules published since the last run find old material. That cannot happen: every scanner in the shared baseline is digest-pinned, gitleaks runs --network none and actionlint is offline, so a scheduled run executes byte-identical rules against byte-identical code. New detector versions arrive as a Renovate image bump, which is a pull request, which already scans.

Solution

State the reason the schedule genuinely earns its place: TruffleHog runs --results=verified and zizmor performs online audits, so both consult live state. A credential that was inactive when committed is reported once it becomes valid. Gitleaks and actionlint repeat themselves, which the comment now says outright.

Copilot AI lite review requested due to automatic review settings September 12, 2026 00:02
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

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

✨ CLEAN

Comment-only change. It matches the shared scan contract: main already gates on the same reusable job, PRs get full git history via fetch-depth 0, and the weekly run re-checks verified-only TruffleHog plus zizmor online audits against live state.

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.

🟡 Changes recommended

The updated comment doesn’t fully match the PR description’s stated goal (explicitly calling out gitleaks/actionlint as offline repeats), so the documentation intent is not yet consistently reflected.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Updates the documentation comment in the Scan GitHub Actions workflow to more accurately describe why the weekly scheduled scan is valuable in this repository’s security posture.

Changes:

  • Rewrites the top-of-file workflow comment to attribute the weekly schedule to scanners that consult live state (TruffleHog verification and zizmor online audits).
  • Improves readability of the existing explanation around triggers and full-history scanning.
File summaries
File Description
.github/workflows/scan.yml Clarifies (in comments) the rationale for keeping a weekly scheduled security scan.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +5 to +8
# baseline checks out with `fetch-depth: 0`. The weekly run is for the scanners
# that consult live state - TruffleHog reports only credentials it can verify,
# and zizmor's online audits read GitHub - so a secret that was inactive at
# commit time is caught once it becomes valid.
@altaywtf
altaywtf merged commit c9e64cd into main Sep 12, 2026
6 checks passed
@altaywtf
altaywtf deleted the docs/scan-schedule-rationale branch September 12, 2026 00:06
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