Skip to content
Open
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/contributor-trust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Contributor Trust Report
Comment thread
Neroxsh marked this conversation as resolved.
Outdated

on:
issues:
types: [opened]
issue_comment:
types: [created]
pull_request_target:
types: [opened]

permissions:
contents: read
issues: write
pull-requests: write
models: read

concurrency:
group: contributor-trust-${{ github.event.pull_request.number || github.event.issue.number || github.run_id }}-${{ github.actor }}
cancel-in-progress: true

jobs:
detection:
name: Inspect public contributor signals
if: github.actor != 'github-actions[bot]'
runs-on: ubuntu-latest
steps:
- name: Build contributor trust report
id: trust
uses: Neroxsh/contributor-trust-action@v1
with:
github-token: ${{ github.token }}

- name: Record result
env:
AUTHOR: ${{ steps.trust.outputs.author }}
RISK_LEVEL: ${{ steps.trust.outputs['risk-level'] }}
RISK_SCORE: ${{ steps.trust.outputs['risk-score'] }}
Comment thread
Neroxsh marked this conversation as resolved.
Outdated
run: echo "@${AUTHOR} => ${RISK_LEVEL} (${RISK_SCORE}/100)"