Skip to content

Repository files navigation

GitHub Users

GitHub Action that can create various list of users from GitHub

  • All known GitHub users with their linked SSO accounts
  • List of all external collaborators and who invited them

User list

Creates a markdown file with the list of all users of the enterprise.

Example

GitHub Enterprise Users

#GitHub LoginE-Mail
1foofoo@octocat.com
2barbar@octocat.com

Using

This action can be used in a workflow like this:

name: Create userliston:
workflow_dispatch:
# Every day at 07:00schedule:
- cron: '0 7 * * *'jobs:
create-userlist:
name: "Create userlist"runs-on: ubuntu-lateststeps:
# Checkout the existing content of thre repository
- name: Checkoutuses: actions/checkout@v2# Run the deployment overview action
- name: Github usersuses: prodyna/github-users@v1.6with:
# The action to runaction: members# The GitHub Enterprise to query for repositoriesenterprise: octocat# The GitHub Token to use for authenticationgithub-token: ${{ secrets.GITHUB_TOKEN }}# The template file to use for rendering the resulttemplate-file: template/members.tpl# The markdown file to write the result tooutput-file: MEMBERS.md# Verbosity level, 0=info, 1=debugverbose: 1# Run the deployment overview action
- name: Github usersuses: prodyna/github-users@v1.6with:
# The action to runaction: collaborators# The GitHub Enterprise to query for repositoriesenterprise: octocat# The GitHub Token to use for authenticationgithub-token: ${{ secrets.GITHUB_TOKEN }}# The template file to use for rendering the resulttemplate-file: template/collaborators.tpl# The markdown file to write the result tooutput-file: COLLABORATORS.md# Verbosity level, 0=info, 1=debugverbose: 1# Push the generated files
- name: Commit changesrun: | git config --local user.email "darko@krizic.net" git config --local user.name "Deployment Overview" git add MEMBERS.md COLLABORATORS.md git commit -m "Add/update deployment overview"

About

GitHub Action that creates a list of GitHub users with their SSO identity linked

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages