Categorygithub.com/fileformat/ghashboard
modulepackage
0.0.10
Repository: https://github.com/fileformat/ghashboard.git
Documentation: pkg.go.dev

# README

Github Actions Dashboard (aka ghashboard) Ghashboard Logo

build release Version

A tool for making dashboard pages with all the badges from your Github Actions.

Examples

VectorLogoZone example External badges example

Using via Github Actions

It works really well to as a generator for Github profiles (example: workflow yaml and resulting profile).

You will need to give it a personal access token (PAT) that has rights to all the repos. The standard GITHUB_TOKEN for the action is limited to only its own repo.

This has to be a Personal Access Token (classic). If you are only doing public repos, you can give it just the single repo:public_repo permission. If you are doing private repos, you need to give it the whole repo permission.

I wasn't able to get a fine-grained token to work, though theoretically it should be possible.

Using via CLI

Download the latest version from the Github Releases page

You can use gh auth token to get working access token.

A sample command:

export GITHUB_TOKEN=$(gh auth token)
ghashboard --owners=google,spf13

Options

Either as inputs for the Github Action or flags for the CLI.

Notes:

  • either owners or repos is required.
  • either public or private must be true
NameDescription
archivedinclude archived repos? (default is false)
emptyinclude repos with no workflows: useful if you have external badges (default is false)
excludeworkflows to exclude (comma-separated list)
externalsexternal badges (list) to include. Note that these usually only work with public repos
footerfooter text
forksinclude forked repos?
formatoutput format: csv, markdown or json. json is good for debugging. (default is markdown)
headerheader text
inactiveinclude inactive workflows?
includeworkflows to include: others will be skipped (comma-separated list)
log-levellog level: debug, info, warn or error
outputoutput file to create (or - for stdout)
ownerslist of owners (comma-separated list)
privateinclude private repos?
publicinclude public repos?
reposlist of repos (comma-separated list)
skipexclude specific repos (use owner/name)
titletitle text
tokenGithub token: not absolutely required, but you will run into rate-limits without one

Frequently Asked Questions

How do you pronounce it?

It is pronounced (in an upper-crust accent) "gosh-board", not "gashboard" like some sort of horror flick.

Can I have only a specific set of repos?

Yes! Make a list outside of ghashboard in a file (one line per repo) and use --repos @repolist.txt. You can build a list with the gh CLI. For example: gh repo list --json nameWithOwner --jq '.[].nameWithOwner'.

Why is are the badges showing up as broken images for my private repos?

The page needs to be hosted on Github: otherwise the Github doesn't know who you are and that you have the necessary rights.

Developing

See run.sh for how I run it during development.

Contributing

Contributions welcome!

License

MIT

Credits

Git Github golang Google Noto Emoji Markdown Shields.IO VectorLogoZone

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
external badge flags.
workflow flags.
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author