Skip to content

ci: run ast-grep on pull requests - #48

Merged
furedea merged 1 commit into
mainfrom
ci/add-ast-grep
Nov 17, 2026
Merged

furedea merged 1 commit into
mainfrom
ci/add-ast-grep

Conversation

@furedea-agent

@furedea-agent furedea-agent Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

概要

CI に共通の ast-grep ワークフロー(furedea/reusable-workflows v1.5.0)を呼び出す ast-grep ジョブを追加し,all-green の needs に加えます.

  • furedea/agent-config の ast-grep ルールを,PR の追加行のみに適用します(reviewdog,-filter-mode=added).
  • push イベントでは走査せず成功します.既存コードには手を加えません.

Refs furedea/agent-config#169

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Review summary

No blocking findings.

The change adds an ast-grep job that calls furedea/reusable-workflows/.github/workflows/ast-grep.yml, pinned to a commit SHA (v1.5.0). The job gets least-privilege permissions (contents: read, pull-requests: read) under the top-level permissions: {}, and it is added to all-green.needs. That means a failed, cancelled or skipped ast-grep run will now block the merge gate, which is consistent with the other jobs.

Not verified: I could not read the called workflow's source in this environment. If its reviewdog step uses a reporter that writes to GitHub (github-pr-review / github-pr-check), it would need pull-requests: write or checks: write. A called workflow can't get more permissions than the caller grants, so it would fail when it starts. The first PR run of this job will confirm whether the permissions are enough. Also, the PR description says push events succeed without scanning; that only holds if the called workflow returns success rather than skipping the job, because all-green treats skipped as a failure.

🤖 Generated with Claude Code

@furedea

furedea commented Nov 17, 2026

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-17T09:04:06.274136Z 041df94 Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 041df94db8

ℹ️ 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".

@furedea
furedea merged commit dfcac0f into main Nov 17, 2026
20 checks passed
@furedea
furedea deleted the ci/add-ast-grep branch November 17, 2026 12:58
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