Skip to content

Find inactive collaborators #2

Find inactive collaborators

Find inactive collaborators #2

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@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
with:
egress-policy: audit
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Report inactive collaborators
id: inactive
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
script: |
const { default: report } = await import("${{github.workspace}}/.github/scripts/inactive-collaborators-report.mjs");
report(github, context);