Skip to content

test: preserve reusable workflow security contracts - #1

Merged
junwu168 merged 2 commits into
mainfrom
codex/add-workflow-contract-tests
Aug 29, 2026
Merged

test: preserve reusable workflow security contracts#1
junwu168 merged 2 commits into
mainfrom
codex/add-workflow-contract-tests

Conversation

@junwu168

Copy link
Copy Markdown
Contributor

Problem

OpenPI PR #279 moves release and Feishu implementations into this repository, but the pinned revision did not preserve all behavior and security contracts that were previously tested alongside OpenPI.

Value

The reusable automation becomes independently reviewable and fails closed at the same boundaries as the original project-local workflows.

Approach

  • Expand Feishu coverage for metadata sanitization, injection resistance, Unicode bounds, secret pairing, HMAC payloads, and response failures.
  • Move secret-pair enforcement into the tested Feishu action.
  • Add a tested release-validation action for event/ref/tag and checked-out package-version validation.
  • Add reusable-workflow contracts for draft suppression, immutable action pins, ancestry, OIDC/environment boundaries, and single-artifact publication.

Validation

  • npm test — 16 passed.
  • YAML parsing for all workflows and action manifests — passed.
  • git diff --check — passed.

Impact

Feishu and release behavior remains compatible while gaining executable fail-closed contracts. No secrets or repository-specific CI move into this repository.

@junwu168
junwu168 requested a review from tt-a1i as a code owner August 29, 2026 12:44
@junwu168
junwu168 merged commit 04259b7 into main Aug 29, 2026
1 check 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.

1 participant