-
Notifications
You must be signed in to change notification settings - Fork 27
45 lines (41 loc) · 1.32 KB
/
Copy pathcontributor-check.yml
File metadata and controls
45 lines (41 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Contributor reputation check
on:
pull_request_target:
types: [opened]
issues:
types: [opened]
workflow_dispatch:
inputs:
username:
description: GitHub username to check
required: true
permissions:
contents: read
issues: write
pull-requests: write
jobs:
check:
runs-on: ubuntu-latest
if: |
github.actor != 'dependabot[bot]' &&
github.actor != 'github-actions[bot]' &&
github.actor != 'copilot-swe-agent[bot]' &&
github.actor != 'claude-code[bot]' &&
github.actor != 'imran-siddique'
steps:
- name: Checkout org action
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: agentrust-io/.github
# Pinned deliberately: this workflow runs on pull_request_target
# with a write-capable token, so the code it checks out must not
# track a mutable ref. Bump this SHA after reviewing the diff.
ref: 0fe4520ee71a743fcd33f409fe366ee3e1da6f86 # main as of 2026-08-01
persist-credentials: false
sparse-checkout: |
scripts
.github/actions/contributor-check
- name: Run contributor check
uses: ./.github/actions/contributor-check
with:
github-token: ${{ secrets.GITHUB_TOKEN }}