Skip to content

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

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

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

Note

Update public-repo-guard workflow to use actions/checkout v7 without persisted credentials

Syncs public-repo-guard.yml to the canonical version. Upgrades actions/checkout from v5.0.1 to v7.0.0 and sets persist-credentials: false so the GITHUB_TOKEN is no longer stored in the repository's Git config after checkout.

Macroscope summarized 93d5ddc.


Summary by cubic

Syncs the vendored public-repo-guard to the canonical wave-foundation/scaffolder/public-repo-guard to remove drift and add the internal-ip leak rule for Tailscale CGNAT (100.64.0.0/10). Also hardens the scan workflow by upgrading actions/checkout and disabling credential persistence.

  • Dependencies
    • Upgrade actions/checkout to v7.0.0.
    • Set persist-credentials: false since the job only runs gitleaks on the working tree and does not push.

Written for commit 93d5ddc. 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.

@macroscopeapp

macroscopeapp Bot commented Aug 4, 2026

Copy link
Copy Markdown

Approvability

Verdict: Needs human review

Unable to check for correctness in 93d5ddc. This CI workflow update (checkout action version bump and security hardening) is low-risk, but the file is owned by wave-av/streaming-team and the author (a bot) is not a designated owner. The team should verify this vendored sync is appropriate.

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

@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 1 potential issue.

Open in Devin Review

Comment on lines +46 to +53
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.

🔍 persist-credentials: false is safe for this job's steps

I verified no subsequent step in this job needs authenticated Git: the scan runs gitleaks detect --no-git --source . and the policy script scripts/public-repo-guard/content-policy.sh operates on the working tree only, with no git fetch/push or GH API calls. Disabling credential persistence therefore does not break the gate. Worth confirming the pinned SHA 9c091bb... actually corresponds to the v7.0.0 tag, since a mismatched comment/SHA pair is only detectable out-of-band.

Open in Devin Review

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

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