fix: standardize CSV/report output locations across scripts - #56
Merged
Conversation
Several reporting scripts wrote their output inconsistently: some to a 'reports/' subdirectory (with differing CWD- vs script-dir-relative defaults), others to a hardcoded filename in the current directory. - github-copilot-report.sh and github-repo-permissions-report.sh now default their CSV output into $REPORT_DIR (default ./reports, overridable via env var or their existing -o/--output flag). - github-close-archived-repo-security-alerts.sh: renamed the script-local REPORTS_DIR variable to the standard REPORT_DIR, exposed it as an env var/action input, and defaulted it to ./reports to match every other reporting script. - github-archive-old-repos.sh: changed its REPORT_DIR default from a script-directory-relative path to ./reports for consistency with the rest of the fleet (still overridable). - github-get-repo-list.sh: fixed a bug where it silently wrote to ./repo-list.csv in the working directory instead of stdout, despite its own header, README, and action.yml all documenting stdout output. Updated README.md, action.yml inputs, and script header comments to document REPORT_DIR everywhere it now applies. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Standardizes where reporting scripts write their CSV/report output — previously inconsistent across the repo.
Changes:
github-copilot-report.shandgithub-repo-permissions-report.shnow default their CSV into$REPORT_DIR(default./reports), instead of the current directory with no report-dir support.github-close-archived-repo-security-alerts.sh: renamedREPORTS_DIR→REPORT_DIR(standard name across the repo), exposed it as an env var / action input, defaulted to./reports.github-archive-old-repos.sh: changedREPORT_DIRdefault from script-directory-relative to./reports, matching every other reporting script.github-get-repo-list.sh: fixed a bug where it silently wrote to./repo-list.csvinstead of stdout, despite its own header comment, README, and action.yml all documenting stdout output.Updated README.md, action.yml inputs, and script header comments accordingly.