GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore: CI セキュリティスキャン追加 (CodeQL / dependency-review / pnpm audit) · Issue #205 · ymnao/scripta

chore: CI セキュリティスキャン追加 (CodeQL / dependency-review / pnpm audit) #205

New issue
Copy link
New issue
Copy link
Closed
#218
Closed
chore: CI セキュリティスキャン追加 (CodeQL / dependency-review / pnpm audit)#205
#218
Copy link
Labels
enhancementNew feature or request
Milestone
v0.5.0

Description

@ymnao
ymnao
opened on Jun 21, 2026
Issue body actions

概要

セッション 25 のセキュリティ posture 探索の結果として、CI 側に自動セキュリティスキャン 3 件を追加する。いずれも GitHub 純正 / OSS の action 追加のみで、アプリコードは変更しない。

背景

セッション 25 の CI セキュリティ posture 診断で、scripta の CI は SHA pin / minimal permissions / external secrets ゼロ / 危険な trigger 不使用と基礎は強固であることを確認した。一方で 自動スキャン系 (静的解析・依存 advisory ゲート) が未配線であり、Dependabot 単独運用に依存している状態。Dependabot は「既存依存の advisory 追従」をカバーするが、「PR 内で導入される新規依存の advisory チェック」「コード上の脆弱パターン検出」はカバーしない。この差分を 3 つの workflow / job 追加で塞ぐ。

要件

1. CodeQL (JS/TS 静的解析) 追加

  • 対応: .github/workflows/codeql.yml を新規追加
    • github/codeql-action/init + analyze を SHA pin で
    • 対象言語: javascript-typescript
    • trigger: push to main + pull_request + schedule: weekly
  • 目的: source code 上の脆弱パターン (XSS / injection / 安全でない API 利用) を PR レビュー時に検出
  • コスト: public repo は無料

2. dependency-review-action 追加

  • 対応: .github/workflows/ci.yml の PR job として actions/dependency-review-action を追加 (SHA pin、fail-on-severity: high 推奨)
  • 目的: PR diff 内で 新規追加された依存 に既知 advisory が無いか自動 gate。Dependabot とは別レイヤー (Dependabot=既存依存追従、こちら=新規追加検査)
  • 既存設定との組み合わせ: pnpm-workspace.yaml の minimumReleaseAge: 1440 (24h) と組み合わせて「24h 経過 + advisory なし」の二重ガード

3. pnpm audit --audit-level=high の定期実行

  • 対応: .github/workflows/audit.yml を新規追加、schedule: weekly で実行
  • 検出時の挙動: fail-on-error: false で report のみ、検出時のみ issue 自動作成 (action 候補: peter-evans/create-issue-from-file SHA pin)
  • 目的: Dependabot より高頻度 / open-pull-requests-limit (10) に縛られない検知。Dependabot の自動 PR 作成と棲み分け

動作確認ポイント

  • (1) CodeQL workflow が CI で green になる (baseline scan で alert 0 件を確認)
  • (2) dependency-review-action が test PR で advisory のある依存追加を fail させる動作を確認
  • (3) pnpm audit workflow が手動 dispatch で動き、advisory がない状態で no-op になる
  • 既存 CI checks ([lint, typecheck, test, build, e2e, electron-e2e]) を壊さない
  • branch protection required status checks の更新が必要なら別 PR で

採用見送り

  • Snyk / Trivy などの third-party SaaS: 認証情報管理が必要で scripta の「external secrets ゼロ」方針と整合しない
  • SBOM 生成 (CycloneDX / Syft): 配布物 transparency 向けで本 issue のスコープと別 (リリース成果物に組み込むため v1.0.0 release: v1.0.0 リリース実施(昇格条件 6 項目すべて pass を確認) #34 で扱う)

参考

  • セッション 25 CI セキュリティ posture 診断 (HANDOFF.md セッション 25 記載)
  • 関連: chore: Electron security checklist 補完 (permission handler / fs:read size limit / pdf debug env) #204 (Electron security checklist 補完, Tier 1) / release: v1.0.0 リリース実施(昇格条件 6 項目すべて pass を確認) #34 (v1.0.0 リリース昇格条件として Tier 3 を追記)

Activity

  1. ymnao
    added this to the v0.5.0 milestone on Jun 21, 2026
  2. ymnao
    added
    enhancementNew feature or request
    on Jun 21, 2026
  3. ymnao
    added a commit that references this issue on Jun 22, 2026

    chore: CI セキュリティスキャン 3 件追加 (#205) (#218)

    e67440e
  4. ymnao
    closed this as completedin #218on Jun 22, 2026
  5. ymnao
    added a commit that references this issue on Jun 24, 2026

    chore: v0.5.0 リリース準備 (#224)

    6126d37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      • v0.5.0No due date

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.