Files
dependabot[bot] 9e1909fbe9 chore(ci): bump actions/checkout from 4.4.0 to 7.0.1
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.4.0 to 7.0.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4.4.0...3d3c42e5aac5ba805825da76410c181273ba90b1)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 7.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-01 20:44:37 +00:00

47 lines
1.7 KiB
YAML

# Commit identity gate — fails a PR when any of its commits carries a blocked
# author/committer/trailer identity (hashed personal emails, placeholder and
# hostname-style tool identities, AI agents) or when a commit message or the
# PR description carries AI agent attribution. The blocked emails are stored only as
# SHA-256 digests in scripts/blocked_identity_hashes.txt; the job output names
# the commit and the kind of match, never the address.
#
# Only commits new to the PR are checked. The native job detects API and
# execution failures; the separate required Commit identity policy status
# carries eligibility, which an unprivileged fork workflow cannot overwrite.
name: commit-identity
on:
pull_request_target:
types: [opened, synchronize, reopened, edited]
permissions:
contents: read
pull-requests: read
statuses: write
concurrency:
group: commit-identity-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
identities:
name: Commit identities
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
# pull_request_target can otherwise resolve the default branch when
# a PR targets an integration branch, invalidating the base snapshot.
ref: ${{ github.event.pull_request.base.sha }}
fetch-depth: 0
persist-credentials: false
- name: Check PR commit identities
# The event's base checkout owns all executable policy. PR commits are
# fetched only as git objects; their files and workflows never run.
run: python3 .github/scripts/identity_check.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}