Repository navigation
🔒 security(ci): harden and optimize GitHub Actions workflows - #232
Conversation
- Add missing harden-runner egress auditing to Deploy Zensical and Validate Zensical - Add timeout-minutes to jobs across all workflows to prevent runaway runs - Replace unmaintained antonyurchenko/git-release with SHA-pinned softprops/action-gh-release, extracting the matching CHANGELOG.md section for release notes - Fix Publish Release push trigger (paths filter is unreliable on tag pushes) and scope contents:write permission to the job level - Fix stale workflow_run reference to the retired 'Build Module' workflow name - Remove dead pull_request condition in scorecard.yml (no such trigger exists) - Clean up stale comments and dead commented-out triggers in Format Markdown and Validate Module Manifest (left intentionally manual-only) - Add missing version comment to SHA-pinned codacy-analysis-cli-action Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedNext included review available in 47 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (1)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (13)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughChangesWorkflow controls and release automation
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Other Sequence Diagram(s)sequenceDiagram
participant GitHub as GitHub tag event
participant Workflow as Publish Release workflow
participant Changelog as Changelog extraction step
participant Release as softprops/action-gh-release
participant Artifacts as ZIP artifacts
GitHub->>Workflow: Start for v*.*.* tag
Workflow->>Changelog: Extract matching section
Changelog-->>Workflow: Write RELEASE_NOTES.md
Workflow->>Artifacts: Select ZIP files
Workflow->>Release: Create release with notes and assets
Merge Risk: ⚪ Minimal · up to The workflow changes have no identified merge-blocking defect. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files
|
Up to standards ✅🟢 Issues
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9b400bd565
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Publish Release.yml referenced artifacts/**/*.zip and src/Archive/**/*.zip without ever producing them in this workflow, so softprops/action-gh-release would silently create a release with no attached package. Add the bootstrap + Invoke-Build steps (matching Build Module.yml) to actually build and archive the module first, point at the real output path, and set fail_on_unmatched_files: true so this can't silently regress again. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ec3088a927
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Splitting the Invoke-Build call into pre-Archive tasks + an explicit cleanup step + the Archive task so Artifacts/ccReport and Artifacts/testOutput (Pester/coverage output) are removed before the release zip is created, keeping CI reports out of the published package. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Summary
Reviewed all 12 GitHub Actions workflows for security, best practices, and redundant/obsolete steps/jobs, and applied targeted, low-risk fixes.
Security
harden-runneregress auditing toDeploy Zensical.yml(both jobs) andValidate Zensical.yml— these were outliers among all other workflowsdocker://antonyurchenko/git-release:latest@sha256:...action with the maintained, SHA-pinnedsoftprops/action-gh-release@efb35369(v3.0.3) inPublish Release.yml; it now extracts the matchingCHANGELOG.mdsection for the release bodycontents: writepermission down from workflow-level to job-level inPublish Release.ymlcodacy/codacy-analysis-cli-actionReliability
timeout-minutesto every job that lacked one, across all 12 workflows, to prevent runaway/hung jobs from consuming runner minutes indefinitelyPublish Release.yml's push trigger: it previously combinedtags,branches, andpathsfilters on onepushtrigger, butpathsfiltering is unreliable/ignored for tag pushes — simplified to a tags-only trigger withif: startsWith(github.ref, 'refs/tags/v')as the guardDead code / redundancy cleanup
Build External Help.yml: removed the stale"Build Module"(no-emoji) entry fromworkflow_run.workflows, keeping only the current"👷 Build Module"namescorecard.yml: removed a deadgithub.event_name == 'pull_request'condition — the workflow has nopull_requesttriggerFormat Markdown.yml: fixed a stale header comment claiming apushtrigger that had already been removed (workflow isworkflow_dispatch-only)Validate Module Manifest.yml: trimmed the large commented-outpull_request/pushtrigger block; left the workflow intentionally manual-only (workflow_dispatch), per confirmation during planningDecisions made during review
Validate Module Manifest.yml: kept as manual-only rather than re-enabling automatic triggers or removing the workflow — just cleaned up the dead comment block.softprops/action-gh-releaseover re-pinning the old unmaintained action, since it's actively maintained and SHA-pinnable.Verification
yaml.safe_load— parses cleanlyactionlintacross.github/workflows/— zero findingsNo functional/behavioral changes beyond the release-action swap, which preserves the same outputs (GitHub release creation + artifact attachment + PowerShell Gallery publish).
Co-authored-by: Copilot App 223556219+Copilot@users.noreply.github.com
Summary by CodeRabbit
Release Process
Workflow Reliability
Security
Maintenance