clarkbw / github-employees-only-action

Outputs all non-empoyees of GitHub to an array

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub Employees Only

This is a GitHub Action that outputs all the non-employees in a given team. The non-employee login identities as an array in the non-employees output along with the team id team-id of the team slug given. This information allows you to do something useful in a followup Action like remove these users from the team or file an issue.

The Action is intended to be run as a scheduled event.

Configuring

This requires PAT with the admin:org permission which is stored in the repository secrets ( https://github.com/USER/REPOSITORY/settings/secrets ). In the example below the PAT was saved with the secret name GITHUB_PAT.

2 required inputs:

name: "Remove non-employees"
on:
  schedule:
  # run every 24 hours
  - cron:  '* */23 * * *'

jobs:
  president-business:
    runs-on: ubuntu-latest
    steps:
    - uses: clarkbw/github-employees-only-action@master
      with:
        repo-token: "${{ secrets.GITHUB_PAT }}"
        team-slug: "github-employees"

Debugging

See Action debugging for the most updated materials.

In your repository create the secret ACTIONS_STEP_DEBUG with the value true to turn on debug output. ( Secrets can be found: https://github.com/USER/REPOSITORY/settings/secrets )

About

Outputs all non-empoyees of GitHub to an array

License:MIT License


Languages

Language:JavaScript 58.4%Language:TypeScript 41.6%