Skip to content

chore(guard): sync vendored public-repo-guard to canonical - #39

Open
wave-av-release-bot[bot] wants to merge 1 commit into
mainfrom
chore/guard-canonical-sync
Open

chore(guard): sync vendored public-repo-guard to canonical#39
wave-av-release-bot[bot] wants to merge 1 commit into
mainfrom
chore/guard-canonical-sync

Conversation

@wave-av-release-bot

@wave-av-release-bot wave-av-release-bot Bot commented Aug 4, 2026

Copy link
Copy Markdown

Syncs the vendored public-repo-guard trio to the canonical source in wave-foundation/scaffolder/public-repo-guard.

  • adds the internal-ip leak rule (Tailscale-CGNAT 100.64.0.0/10), lockstep with the pre-publish mirror gate
  • reconciles accumulated drift in the vendored copy

Each changed file is byte-for-byte identical to canonical (verified by git blob SHA). The repo's own Secrets + content policy gate re-scans this PR.

🤖 Generated with Claude Code


Open in Devin Review

Summary by cubic

Syncs the vendored public-repo-guard to the canonical source to keep leak detection in lockstep and tighten CI security. Aligns rules and updates the workflow that runs the guard.

  • New Features

    • Add internal-ip leak rule for Tailscale CGNAT 100.64.0.0/10; vendored copy now matches canonical byte-for-byte.
  • Dependencies

    • Update actions/checkout to v7.0.0 and set persist-credentials: false to avoid persisting the job token when running gitleaks.

Written for commit 1b63239. Summary will update on new commits.

Review in cubic

@greptile-apps

greptile-apps Bot commented Aug 4, 2026

Copy link
Copy Markdown

PR author is in the excluded authors list.

@devin-ai-integration devin-ai-integration 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.

Devin Review found 2 potential issues.

Open in Devin Review

Comment on lines +45 to +53
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
# Checkout defaults to persisting the job token for later steps: since v6 it
# lives in a file under $RUNNER_TEMP referenced from .git/config, no longer in
# .git/config itself. It is still a live credential in the job, and this job
# downloads a third-party binary (gitleaks, below) and runs it over the whole
# tree. Nothing here pushes -- the scan is `--no-git` over the working tree --
# so no step needs authenticated Git; drop it. (zizmor: artipacked)
persist-credentials: false

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔍 Checkout pin bumped only in this workflow; other workflows still on v4

This PR upgrades actions/checkout to v7 with persist-credentials: false only in public-repo-guard.yml. The other workflows (.github/workflows/_checks.yml:23,54,114 and .github/workflows/foundation-gate.yml:44) still pin v4.3.1 and keep the default persist-credentials: true, so the artipacked hardening is inconsistent across the repo. If the intent is a repo-wide hardening sync, those workflows likely need the same treatment.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔍 Verify the commit SHA actually corresponds to checkout v7.0.0

The action is pinned by SHA with a # v7.0.0 comment. Correctness of the pin cannot be validated from within the repo; a mismatched SHA/tag comment would silently run a different revision than reviewers assume. Worth confirming 9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 is the tagged v7.0.0 commit of actions/checkout before merge. Functionally, dropping persisted credentials is safe here since no step performs authenticated Git operations (scan runs gitleaks detect --no-git --source .).

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

@macroscopeapp

macroscopeapp Bot commented Aug 4, 2026

Copy link
Copy Markdown

Approvability

Verdict: Needs human review

Unable to check for correctness in 1b63239. This is a minor CI security hardening change (updating checkout action and adding persist-credentials: false), but the modified workflow file is owned by wave-av/core-team and the author is a bot account without ownership. The designated code owners should review this change.

You can customize Macroscope's approvability policy. Learn more.

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.

0 participants