Skip to content

ci(security): consolidate SBOM schedule - #1785

Merged
ootakazuhiko merged 3 commits into
mainfrom
chore/ci-security-schedule
Jan 27, 2026
Merged

ci(security): consolidate SBOM schedule#1785
ootakazuhiko merged 3 commits into
mainfrom
chore/ci-security-schedule

Conversation

@ootakazuhiko

Copy link
Copy Markdown
Collaborator

Summary\n- move SBOM weekly schedule into security workflow and invoke via workflow_call\n- keep PR/push SBOM behavior intact while consolidating schedule\n- ensure reusable workflow has required permissions for attestations\n\n## Testing\n- not run (workflow change)

Copilot AI review requested due to automatic review settings January 27, 2026 02:53
@github-actions

Copy link
Copy Markdown
Contributor

❓ Code Generation Drift Detection

Status:
Regeneration needed: No


Automated by AE-Framework Codegen

@ootakazuhiko

Copy link
Copy Markdown
Collaborator Author

Auto Update Branch

PR #1785 was behind base; triggered branch update.
If conflicts remain, manual resolution is required.

@github-actions

Copy link
Copy Markdown
Contributor

❓ Code Generation Drift Detection

Status:
Regeneration needed: No


Automated by AE-Framework Codegen

@github-actions

Copy link
Copy Markdown
Contributor

Quality Summary

  • Adapters:

  • Formal: n/a

  • Replay: n/a

  • Trace IDs:

@github-actions

Copy link
Copy Markdown
Contributor

🔍 Verification Summary

  • Traceability: 6 scenarios
    • Tests: 3 (50%)
    • Impl: 3 (50%)
    • Formal: 3 (50%)
Unlinked (top 5) - Device registration publishes enough pre-keys and emits audit log (id: device-registration-publishes-enough-pre-keys-and-emits-audit-log) test:N/A impl:N/A formal:N/A - Invalid auth tag triggers audit violation for AES-GCM envelopes (id: invalid-auth-tag-triggers-audit-violation-for-aes-gcm-envelopes) test:N/A impl:N/A formal:N/A - Session rotation stays within forward secrecy thresholds (id: session-rotation-stays-within-forward-secrecy-thresholds) test:N/A impl:N/A formal:N/A
Linked examples (up to 3) - Successful reservation (id: successful-reservation) test: [traceability/inventory.trace.test.ts](https://github.com/itdojp/ae-framework/blob/b2f8cd92649151e438b5a5d24cf2c4d8058a3796/tests/traceability/inventory.trace.test.ts) impl: [domain/inventory.ts](https://github.com/itdojp/ae-framework/blob/b2f8cd92649151e438b5a5d24cf2c4d8058a3796/src/domain/inventory.ts) formal: [tla+/Inventory.tla](https://github.com/itdojp/ae-framework/blob/b2f8cd92649151e438b5a5d24cf2c4d8058a3796/specs/formal/tla+/Inventory.tla) - Prevent negative stock (id: prevent-negative-stock) test: [traceability/inventory.trace.test.ts](https://github.com/itdojp/ae-framework/blob/b2f8cd92649151e438b5a5d24cf2c4d8058a3796/tests/traceability/inventory.trace.test.ts) impl: [domain/inventory.ts](https://github.com/itdojp/ae-framework/blob/b2f8cd92649151e438b5a5d24cf2c4d8058a3796/src/domain/inventory.ts) formal: [tla+/Inventory.tla](https://github.com/itdojp/ae-framework/blob/b2f8cd92649151e438b5a5d24cf2c4d8058a3796/specs/formal/tla+/Inventory.tla) - Idempotent by order id (id: idempotent-by-order-id) test: [traceability/inventory.trace.test.ts](https://github.com/itdojp/ae-framework/blob/b2f8cd92649151e438b5a5d24cf2c4d8058a3796/tests/traceability/inventory.trace.test.ts) impl: [domain/inventory.ts](https://github.com/itdojp/ae-framework/blob/b2f8cd92649151e438b5a5d24cf2c4d8058a3796/src/domain/inventory.ts) formal: [tla+/Inventory.tla](https://github.com/itdojp/ae-framework/blob/b2f8cd92649151e438b5a5d24cf2c4d8058a3796/specs/formal/tla+/Inventory.tla)
Hit basis (tests/formal) - Test hits: title=3 id=0 tag=0 - Formal hits: title=0 id=3 tag=0
- Model Check (TLC): 2/8 (25%) modules ok
Non-OK modules (top 5) - KvOnce (log: artifacts/codex/KvOnce.tlc.log.txt) - KvOnceRefinement (log: artifacts/codex/KvOnceRefinement.tlc.log.txt) - KvOnceImpl (log: artifacts/codex/KvOnceImpl.tlc.log.txt) - KvOnce (log: artifacts/codex/KvOnce.tlc.log.txt) - KvOnceRefinement (log: artifacts/codex/KvOnceRefinement.tlc.log.txt)
- Alloy: detected 2 specs (execution skipped) - Contracts: schemas=true conditions=true machine=true - Contracts exec: parseIn=false pre=false post=false parseOut=false

@github-actions

Copy link
Copy Markdown
Contributor

CodeX Artifacts Summary

  • • Contract/E2E templates: 1 files (dir: tests/api/generated)
  • • Tests: PBT files=122, BDD features=0
  • • Formal specs: TLA=1, Alloy=1

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR consolidates the SBOM generation schedule into the security workflow to reduce redundancy and improve workflow organization. The SBOM generation previously ran on its own weekly schedule but is now invoked by the security workflow via workflow_call when triggered by schedule or manual dispatch events.

Changes:

  • Removed the standalone weekly schedule (Mon 05:40 UTC) from sbom-generation.yml and added workflow_call trigger
  • Added sbom-generation job to security.yml that invokes sbom-generation.yml on schedule/dispatch events
  • Updated input handling in sbom-generation.yml to support both workflow_call and workflow_dispatch triggers

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/security.yml Adds new sbom-generation job that invokes the SBOM workflow via workflow_call on schedule/dispatch events with required permissions
.github/workflows/sbom-generation.yml Removes standalone schedule trigger, adds workflow_call event support, and updates input handling to work with both workflow_call and workflow_dispatch

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/security.yml Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b2f8cd9264

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread .github/workflows/security.yml
@github-actions

Copy link
Copy Markdown
Contributor

CI Status Snapshot (2026-01-27T03:31:45.292Z)

@github-actions

Copy link
Copy Markdown
Contributor

❓ Code Generation Drift Detection

Status:
Regeneration needed: No


Automated by AE-Framework Codegen

@ootakazuhiko

ootakazuhiko commented Jan 27, 2026

Copy link
Copy Markdown
Collaborator Author

レビューコメント対応しました。

  • run_sbom 出力の未使用指摘: 行を削除しました。
  • reusable SBOM の secrets 指摘: security.ymlsecrets: inherit を追加し、sbom-generation.ymlworkflow_call.secretsDEPENDENCY_TRACK_API_KEY を定義しました。

コンフリクトはありません(rebase 済み、mergeable 状態)。

@github-actions

Copy link
Copy Markdown
Contributor

🔍 Verification Summary

  • Traceability: 6 scenarios
    • Tests: 3 (50%)
    • Impl: 3 (50%)
    • Formal: 3 (50%)
Unlinked (top 5) - Device registration publishes enough pre-keys and emits audit log (id: device-registration-publishes-enough-pre-keys-and-emits-audit-log) test:N/A impl:N/A formal:N/A - Invalid auth tag triggers audit violation for AES-GCM envelopes (id: invalid-auth-tag-triggers-audit-violation-for-aes-gcm-envelopes) test:N/A impl:N/A formal:N/A - Session rotation stays within forward secrecy thresholds (id: session-rotation-stays-within-forward-secrecy-thresholds) test:N/A impl:N/A formal:N/A
Linked examples (up to 3) - Successful reservation (id: successful-reservation) test: [traceability/inventory.trace.test.ts](https://github.com/itdojp/ae-framework/blob/0706b1b2b8a85c531ec4e9b80cbcb484f61ce10a/tests/traceability/inventory.trace.test.ts) impl: [domain/inventory.ts](https://github.com/itdojp/ae-framework/blob/0706b1b2b8a85c531ec4e9b80cbcb484f61ce10a/src/domain/inventory.ts) formal: [tla+/Inventory.tla](https://github.com/itdojp/ae-framework/blob/0706b1b2b8a85c531ec4e9b80cbcb484f61ce10a/specs/formal/tla+/Inventory.tla) - Prevent negative stock (id: prevent-negative-stock) test: [traceability/inventory.trace.test.ts](https://github.com/itdojp/ae-framework/blob/0706b1b2b8a85c531ec4e9b80cbcb484f61ce10a/tests/traceability/inventory.trace.test.ts) impl: [domain/inventory.ts](https://github.com/itdojp/ae-framework/blob/0706b1b2b8a85c531ec4e9b80cbcb484f61ce10a/src/domain/inventory.ts) formal: [tla+/Inventory.tla](https://github.com/itdojp/ae-framework/blob/0706b1b2b8a85c531ec4e9b80cbcb484f61ce10a/specs/formal/tla+/Inventory.tla) - Idempotent by order id (id: idempotent-by-order-id) test: [traceability/inventory.trace.test.ts](https://github.com/itdojp/ae-framework/blob/0706b1b2b8a85c531ec4e9b80cbcb484f61ce10a/tests/traceability/inventory.trace.test.ts) impl: [domain/inventory.ts](https://github.com/itdojp/ae-framework/blob/0706b1b2b8a85c531ec4e9b80cbcb484f61ce10a/src/domain/inventory.ts) formal: [tla+/Inventory.tla](https://github.com/itdojp/ae-framework/blob/0706b1b2b8a85c531ec4e9b80cbcb484f61ce10a/specs/formal/tla+/Inventory.tla)
Hit basis (tests/formal) - Test hits: title=3 id=0 tag=0 - Formal hits: title=0 id=3 tag=0
- Model Check (TLC): 2/8 (25%) modules ok
Non-OK modules (top 5) - KvOnce (log: artifacts/codex/KvOnce.tlc.log.txt) - KvOnceRefinement (log: artifacts/codex/KvOnceRefinement.tlc.log.txt) - KvOnceImpl (log: artifacts/codex/KvOnceImpl.tlc.log.txt) - KvOnce (log: artifacts/codex/KvOnce.tlc.log.txt) - KvOnceRefinement (log: artifacts/codex/KvOnceRefinement.tlc.log.txt)
- Alloy: detected 2 specs (execution skipped) - Contracts: schemas=true conditions=true machine=true - Contracts exec: parseIn=false pre=false post=false parseOut=false

@github-actions

Copy link
Copy Markdown
Contributor

CodeX Artifacts Summary

  • • Contract/E2E templates: 1 files (dir: tests/api/generated)
  • • Tests: PBT files=122, BDD features=0
  • • Formal specs: TLA=1, Alloy=1

@ootakazuhiko
ootakazuhiko merged commit 6b3d5b8 into main Jan 27, 2026
56 of 58 checks passed
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