Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prodyna/github-users
GitHub Action that creates a list of GitHub users with their SSO identity linked
https://github.com/prodyna/github-users
github github-actions go
Last synced: about 1 month ago
JSON representation
GitHub Action that creates a list of GitHub users with their SSO identity linked
- Host: GitHub
- URL: https://github.com/prodyna/github-users
- Owner: PRODYNA
- License: mit
- Created: 2024-03-10T18:37:10.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-09-16T11:43:21.000Z (4 months ago)
- Last Synced: 2024-09-16T12:55:38.905Z (4 months ago)
- Topics: github, github-actions, go
- Language: Go
- Homepage:
- Size: 62.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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 Login | E-Mail |
> | --- |--------------------------------------------------------------|-----------------|
> | 1 | [foo](https://github.com/enterprises/octocat/people/foo/sso) | [email protected] |
> | 2 | [bar](https://github.com/enterprises/octocat/people/bar/sso) | [email protected] |### Using
This action can be used in a workflow like this:
```yaml
name: Create userliston:
workflow_dispatch:
# Every day at 07:00
schedule:
- cron: '0 7 * * *'jobs:
create-userlist:
name: "Create userlist"
runs-on: ubuntu-latest
steps:
# Checkout the existing content of thre repository
- name: Checkout
uses: actions/checkout@v2# Run the deployment overview action
- name: Github users
uses: prodyna/[email protected]
with:
# The action to run
action: members
# The GitHub Enterprise to query for repositories
enterprise: octocat
# The GitHub Token to use for authentication
github-token: ${{ secrets.GITHUB_TOKEN }}
# The template file to use for rendering the result
template-file: template/members.tpl
# The markdown file to write the result to
output-file: MEMBERS.md
# Verbosity level, 0=info, 1=debug
verbose: 1# Run the deployment overview action
- name: Github users
uses: prodyna/[email protected]
with:
# The action to run
action: collaborators
# The GitHub Enterprise to query for repositories
enterprise: octocat
# The GitHub Token to use for authentication
github-token: ${{ secrets.GITHUB_TOKEN }}
# The template file to use for rendering the result
template-file: template/collaborators.tpl
# The markdown file to write the result to
output-file: COLLABORATORS.md
# Verbosity level, 0=info, 1=debug
verbose: 1# Push the generated files
- name: Commit changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "Deployment Overview"
git add MEMBERS.md COLLABORATORS.md
git commit -m "Add/update deployment overview"
```