Skip to content

ci: harden Codex rails reusable workflow - #10

Merged
haasonsaas merged 1 commit into
mainfrom
codex/org-codex-rails-hardening
Apr 28, 2026
Merged

ci: harden Codex rails reusable workflow#10
haasonsaas merged 1 commit into
mainfrom
codex/org-codex-rails-hardening

Conversation

@haasonsaas

Copy link
Copy Markdown
Contributor

Summary

  • trigger the org Codex rails check for nested AGENTS.md files
  • validate every AGENTS.md file discovered in a repository
  • add read-only workflow permissions and pin actions/checkout by commit SHA

Test plan

  • actionlint .github/workflows/codex-rails-check.yml
  • ruby -e 'require "yaml"; YAML.load_file(".github/workflows/codex-rails-check.yml")'

@cursor

cursor Bot commented Apr 28, 2026

Copy link
Copy Markdown

PR Summary

Low Risk
Low risk: limited to CI workflow triggers and validation logic, with the main impact being stricter checks that could fail PRs if nested AGENTS.md files are empty or missing when required.

Overview
Expands the codex-rails-check workflow to trigger on changes to nested **/AGENTS.md files and updates validation to scan all AGENTS.md files in the repo (failing if any are empty, and optionally failing if the root file is missing when require_agents is true).

Hardens the workflow by setting read-only contents permissions and pinning actions/checkout to a specific commit SHA.

Reviewed by Cursor Bugbot for commit 569a23b. Bugbot is set up for automated code reviews on this repo. Configure here.

@haasonsaas
haasonsaas merged commit 0944b07 into main Apr 28, 2026
4 checks passed
@haasonsaas
haasonsaas deleted the codex/org-codex-rails-hardening branch April 28, 2026 15:27
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