8000 GitHub - jeff-miller-cfa/github-actions-log-warning-checker: Bash script to search for workflow runs referencing deprecated workflow commands
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Bash script to search for workflow runs referencing deprecated workflow commands

License

Notifications You must be signed in to change notification settings

jeff-miller-cfa/github-actions-log-warning-checker

8000
 
 

Repository files navigation

github-actions-log-warning-checker

  • In a list of repositories, run through recent1 workflow runs to see if there are any set-output / save-state deprecated workflow command warnings in the logs
  • Outputs results to a specified CSV file
  • In the output CSV, there is a column to denote whether the warning was found in the latest workflow run or not

Usage

  1. Run gh auth login to authenticate with GitHub CLI
  2. Run ./generate-repos.sh <org> > repos.csv
    • Modify list as needed
    • Or create a list of repos in a csv file, <org/<repo>, 1 per line, with a trailing empty line at the end of the file
  3. Run: ./github-actions-log-warning-checker.sh repos.csv output.csv

Example Output

repo,workflow_name,workflow_url,found_in_latest_workflow_run
joshjohanning-org/actions-linter-testing,CI,https://github.com/joshjohanning-org/actions-linter-testing/blob/main/.github/workflows/blank.yml,no
joshjohanning-org/actions-linter-testing,new-workflow,https://github.com/joshjohanning-org/actions-linter-testing/blob/main/.github/workflows/new-file.yml,yes

Footnotes

  1. Recent is defined as the last 2 workflow runs, modify WORKFLOW_RUNS_TO_CHECK as needed.

About

Bash script to search for workflow runs referencing deprecated workflow commands

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%
0