Find inactive collaborators #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/nodejs.org' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.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/report-inactive-collaborators.mjs"); | |
report(github, context); |