{"id":16805278,"url":"https://github.com/joshjohanning/github-actions-log-warning-checker","last_synced_at":"2025-04-11T01:20:25.339Z","repository":{"id":89915919,"uuid":"607301885","full_name":"joshjohanning/github-actions-log-warning-checker","owner":"joshjohanning","description":"Bash script to search for workflow runs referencing deprecated workflow commands","archived":false,"fork":false,"pushed_at":"2023-06-01T21:53:47.000Z","size":19,"stargazers_count":8,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T22:13:46.539Z","etag":null,"topics":["actions","github"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joshjohanning.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-27T18:09:10.000Z","updated_at":"2024-03-07T07:04:32.000Z","dependencies_parsed_at":"2025-02-18T10:45:07.300Z","dependency_job_id":null,"html_url":"https://github.com/joshjohanning/github-actions-log-warning-checker","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshjohanning%2Fgithub-actions-log-warning-checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshjohanning%2Fgithub-actions-log-warning-checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshjohanning%2Fgithub-actions-log-warning-checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshjohanning%2Fgithub-actions-log-warning-checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joshjohanning","download_url":"https://codeload.github.com/joshjohanning/github-actions-log-warning-checker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248323101,"owners_count":21084437,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","github"],"created_at":"2024-10-13T09:47:42.002Z","updated_at":"2025-04-11T01:20:25.323Z","avatar_url":"https://github.com/joshjohanning.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# github-actions-log-warning-checker\n\n- In a list of repositories, run through recent[^1] workflow runs to see if there are any `set-output` / `save-state` [deprecated workflow command](https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/) or [deprecated Node.js 12 actions](https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/) warnings in the logs\n- The script outputs the results to a specified CSV file (e.g.: `output.csv`)\n- In the output CSV, there is a column to denote whether the warning was found in the latest workflow run or not\n- In the output CSV, there is a column to denote which warning it is referencing (deprecated workflow command or deprecated Node.js 12 action)\n\n## Usage\n\n1. Run `gh auth login` to authenticate with GitHub CLI\n2. Run `./generate-repos.sh \u003corg\u003e \u003e repos.csv` \n    - Modify list as needed\n    - Or create a list of repos in a csv file, `\u003corg/\u003crepo\u003e`, 1 per line, with a trailing empty line at the end of the file\n3. Run: `./github-actions-log-warning-checker.sh repos.csv output.csv`\n\n## Example Output\n\n```csv\nrepo,workflow_name,workflow_url,finding,found_in_latest_workflow_run\njoshjohanning-org/actions-linter-testing,CI,https://github.com/joshjohanning-org/actions-linter-testing/blob/main/.github/workflows/blank.yml,Workflow command,no\njoshjohanning-org/actions-linter-testing,new-workflow,https://github.com/joshjohanning-org/actions-linter-testing/blob/main/.github/workflows/new-file.yml,Workflow command,yes\njoshjohanning-org/actions-linter-testing,node12,https://github.com/joshjohanning-org/actions-linter-testing/blob/main/.github/workflows/node12.yml,Node.js 12 action,yes\n```\n\n## Sample repos.csv file to use for testing\n\nYou can use this `repos.csv` file for testing. It has a finding for a result for a deprecated Node.js 12 action as well as a deprecated workflow command. \n\n```csv\njoshjohanning-org/actions-linter-testing\njoshjohanning-org/actions-linter-testing-clean\n\n```\n\n[^1]: Recent is defined as the last 2 workflow runs, modify `WORKFLOW_RUNS_TO_CHECK` as needed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshjohanning%2Fgithub-actions-log-warning-checker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoshjohanning%2Fgithub-actions-log-warning-checker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshjohanning%2Fgithub-actions-log-warning-checker/lists"}