Skip to content

fix: standardize CSV/report output locations across scripts - #56

Merged
locus313 merged 1 commit into
mainfrom
fix/standardize-report-output-dirs
Aug 5, 2026
Merged

fix: standardize CSV/report output locations across scripts#56
locus313 merged 1 commit into
mainfrom
fix/standardize-report-output-dirs

Conversation

@locus313

@locus313 locus313 commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Standardizes where reporting scripts write their CSV/report output — previously inconsistent across the repo.

Changes:

  • github-copilot-report.sh and github-repo-permissions-report.sh now 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: renamed REPORTS_DIRREPORT_DIR (standard name across the repo), exposed it as an env var / action input, defaulted to ./reports.
  • github-archive-old-repos.sh: changed REPORT_DIR default 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.csv instead 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.

  • 103/103 bats tests pass
  • shellcheck clean

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>
@locus313
locus313 merged commit 9de57d0 into main Aug 5, 2026
2 checks passed
@locus313
locus313 deleted the fix/standardize-report-output-dirs branch August 5, 2026 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant