Skip to content

ci: use the shared lint and nix workflows - #29

Merged
furedea merged 1 commit into
mainfrom
ci/use-shared-lint-workflows
Nov 8, 2026
Merged

furedea merged 1 commit into
mainfrom
ci/use-shared-lint-workflows

Conversation

@furedea

@furedea furedea commented Nov 8, 2026

Copy link
Copy Markdown
Owner

GitHub Actions の lint(actionlint,zizmor),dependency review,nix lint,flake check を,furedea/reusable-workflows v1.0.0 の共有 workflow から呼ぶように変えます.4 つとも all-green の needs に入るので,失敗するとマージできません.

項目 今 変更後
共有 workflow の固定 @<sha> # main(main が進むと zizmor の ref-version-mismatch で落ちる) @<sha> # v1.0.0
actionlint / zizmor gha_lint.yml(workflow を変えた PR だけ) ci.yml から gha-lint.yml を呼ぶ(全 PR,all-green に入る)
dependency review dependency_review.yml(all-green の外),または無し ci.yml から dependency-review.yml を呼ぶ.非公開 repo と PR 以外では飛ばして成功扱い
nix lint ci.yml に直接書いたジョブ nix-lint.yml を呼ぶ
flake check repo ごと(無い repo もある) nix-check.yml を呼ぶ(nix flake check -L と全 system の評価)
CodeQL 非公開でも動く 非公開 repo では飛ばす.codeql-action を v4.39.2 に
claude-review / codex-review # main の古い SHA # v1.0.0
  • gha-lint / …,dependency-review / …,nix-lint / nix-lint,nix-check / nix-check が成功する
  • all-green が green になる
出典

🤖 Generated with Claude Code

Call gha-lint, dependency-review, nix-lint and nix-check from
furedea/reusable-workflows v1.0.0 and require them in all-green.
Remove the per-repository GitHub Actions lint and dependency review
workflows, move flake checks to the shared nix-check, skip CodeQL on
private repositories, and pin the review workflows to the same release.

Refs furedea/reusable-workflows#6

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 8, 2026 13:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@furedea

furedea commented Nov 8, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 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-08T13:38:33.986206Z b6e2e6a 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.


jobs:
analyze:
if: ${{ !github.event.repository.private }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: This guard only works for push and pull_request, where the payload includes repository. This workflow also runs on schedule, and a scheduled event's payload has no repository object. There, github.event.repository.private is null, !null is true, and the weekly CodeQL run still happens on private repos. On a private repo without code scanning, that weekly run fails, which is what this change was meant to stop.

A condition that doesn't depend on the event payload would cover all three triggers. One option is a repo/org variable, e.g. if: ${{ vars.ENABLE_CODEQL != 'false' }}. Another is to make the scheduled run explicitly public-only.

@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown

Review summary

No blocking findings (P0/P1: 0).

What I checked:

  • ci.yml: the new reusable-workflow calls (nix-lint, gha-lint, dependency-review, nix-check) all pin the same commit, c1a43f6 # v1.0.0. Each call's permissions (contents: read, plus actions: read for zizmor) match what the deleted local jobs had. All four are now in all-green.needs.
  • The deleted dependency_review_config.yml only set fail-on-severity: high / warn-only: false. The PR says the shared workflow uses the same defaults.
  • codeql.yml already uses codeql-action v4.39.2 in this tree.

Finding:

  • P3, codeql.yml: the private-repo guard !github.event.repository.private does nothing on schedule runs, whose payload has no repository. Private repos would still get the weekly CodeQL run, and it would fail.

Not verified: I couldn't fetch the shared workflow files at c1a43f6 from this environment. One thing to confirm: all-green fails when any needed job is skipped. On push to main, or on private repos, the dependency-review call must finish as success, not skipped, or all-green goes red. The PR says the shared workflow handles this; the first push to main after merge will show whether it does.

🤖 Generated with Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: b6e2e6a314

ℹ️ 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 34758cb into main Nov 8, 2026
15 checks passed
@furedea
furedea deleted the ci/use-shared-lint-workflows branch November 8, 2026 15:41
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.

2 participants