Repository navigation
Add reusable Action Pinning Check (pinact) + canonical config - #48
Conversation
Establishes the org GitHub Actions pinning standard primitive: - reusable-pinact-check.yml: per-PR gate running pinact in validation-only mode (fix: false, verify-comment, verify-min-age). SHA-pins its own actions (checkout v6.0.2, pinact-action v3.0.0). - workflow-template pinact-check.yml + .properties.json so repos opt in from the Actions picker. - pinact/.pinact.yml: canonical min_age (7 days, always) config repos copy. - pinact/.pre-commit-config.example.yaml: local auto-pin hook. - docs/workflows.md: usage, prerequisites, local pre-commit, adoption. pinact-action v3.0.0 bundles pinact CLI v4.0.0, so CI and local runs use the same engine.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (3)
WalkthroughThis PR introduces a complete action-pinning validation system built on pinact. It adds a reusable GitHub Actions workflow that checks pinned actions and workflows, workflow templates for easy adoption, a canonical pinact configuration with a 7-day minimum release age, an example pre-commit hook, and documentation guiding users through setup and integration. ChangesPinact Action-Pinning CI Workflow
Estimated Code Review Effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly Related Issues
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Secret Leak CheckOK No secrets detected in this PR's diff. |
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/workflows.md`:
- Around line 178-192: The duplicate markdown headings "### Inputs" and "###
Adding it to a repo" trigger MD024; rename one of each pair to a unique
subsection title (for example change "### Inputs" to "### Workflow inputs" or
"### Check inputs" and change "### Adding it to a repo" to "### Adding it to
this repository" or "### Repository setup") so headings are distinct; update any
internal links or references that point to the old headings (search for the
exact strings "### Inputs" and "### Adding it to a repo") to match the new
titles to keep navigation and anchors working.
In `@pinact/.pre-commit-config.example.yaml`:
- Line 34: The current 'files' regex in .pre-commit-config.example.yaml only
matches repo-root action.yml (it contains the token action\.ya?ml); update that
'files' pattern so it also matches action.yml/action.yaml in subdirectories by
allowing an optional directory prefix (i.e., permit one or more path segments
before action\.ya?ml), so composite actions in nested folders are included in
the pre-commit check.
In `@workflow-templates/pinact-check.yml`:
- Around line 4-5: The workflow hard-codes the PR target branch via the
pull_request trigger's "branches: [main]" which prevents runs on repos with
different default branches; remove the "branches: [main]" line (i.e., leave only
"pull_request:" without a branches filter) or replace it with a configurable
input if you need restriction, so the pull_request trigger will run for PRs
targeting the repo's default branch; locate the "pull_request" block and the
"branches: [main]" entry in the template and delete or parameterize that line.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: 3b7043ae-30fa-4b33-be24-6484f4293fba
📒 Files selected for processing (6)
.github/workflows/reusable-pinact-check.ymldocs/workflows.mdpinact/.pinact.ymlpinact/.pre-commit-config.example.yamlworkflow-templates/pinact-check.properties.jsonworkflow-templates/pinact-check.yml
- pinact-check.yml template: use $default-branch instead of hardcoded main (matches the bumblebee-scan template convention). - .pre-commit-config.example.yaml: broaden files regex to match action.yml/action.yaml at any depth (composite actions in subdirs). - docs/workflows.md: rename new subsections (Required files / Check inputs / Enabling the check) to avoid MD024 duplicate-heading collisions.
Secret Leak CheckOK No secrets detected in this PR's diff. |
Builds the enforcement primitive and shared config for the org GitHub Actions pinning standard (geolonia-operations#143 + #148).
What this adds
.github/workflows/reusable-pinact-check.yml— per-PR reusable gate that runs pinact in validation-only mode (fix: false+--verify-comment+--verify-min-age). It never edits files or pushes; it only fails the check when an action is unpinned, has a mismatched version comment, or is younger than the configured minimum release age. Its own actions are SHA-pinned (actions/checkoutv6.0.2,suzuki-shunsuke/pinact-actionv3.0.0).workflow-templates/pinact-check.yml+.properties.json— org Actions-picker template so any repo opts in with a few lines.pinact/.pinact.yml— canonicalmin_age: { value: 7, always: true }config repos copy (the Actions analog of pnpmminimumReleaseAge).pinact/.pre-commit-config.example.yaml— local auto-pin hook so devs pin before pushing.docs/workflows.md— usage, prerequisites (.pinact.yml+ Dependabot github-actions w/ cooldown 7 + groups), local pre-commit, adoption steps.Notes
pinact-actionv3.0.0 bundles pinact CLI v4.0.0, so CI and local runs use the same engine.@v1tag move happen in follow-ups.v1to include this reusable workflow.Summary by CodeRabbit
New Features
Documentation
Chores