Skip to content

dcarley/gh-actions-search-errors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gh-actions-search-errors

CLI utility for searching error strings in GitHub Actions logs.

This is useful for finding other occurrences of a failure to assess how commonly it occurs and debug further.

Setup

Generate a fine-grained PAT that has read-only access to GitHub Actions:

Export the token for your current shell (or use 1Password CLI):

 export GITHUB_TOKEN=redacted

Activate the environment with Flox:

flox activate

Build the binary:

cargo build

Usage

Basic usage:

gh-actions-search-errors --repo user/repo --text "string to search"

The search can be sped up by specifying the arguments:

  • --job and --step to limit what output is fetched
  • --after and --before to limit the date range

Example output:

Screenshot of gh-actions-search-errors output

About

CLI utility for searching error strings in GitHub Actions logs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages