Skip to content

Find inactive collaborators #15

Find inactive collaborators

Find inactive collaborators #15

name: Find inactive collaborators
on:
schedule:
- cron: "0 0 1 * *" # Runs at 00:00 UTC on the 1st day of every month
workflow_dispatch:
permissions:
contents: read
issues: write
jobs:
find:
if: github.repository == 'nodejs/web-team'
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
egress-policy: audit
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Report inactive collaborators
id: inactive
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
script: |
const { default: report } = await import("${{github.workspace}}/.github/scripts/inactive-collaborator-report.mjs");
report(github, context);