You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The preview workflow check misses a PR head fetched without git #3815
harper preview setup checks a preview workflow for jobs that could run a PR's own code with the preview identity, but it only inspects actions/checkout and shell git commands. A job holding the identity token that gets the PR's code any other way passes clean:
gh pr diff "$PR" | git apply
curl https://github.com/<repo>/archive/${{ github.event.pull_request.head.sha }}.tar.gz | tar x
gh repo clone <repo> -- --branch "$BRANCH"
The check is a heuristic for an administrator's own workflow, and forks are excluded separately, so this affects same-repository PRs only, with the identity's grant limited to that app's previews. A fix could extend the scan to gh and curl, or mark any command naming a PR-head value unsafe.
Activity