Skip to content

feat: add sem-approve command parameters to include secrets, enable cache in forked PRs#1026

Open
dexyk wants to merge 19 commits into
mainfrom
dk/sem_full_approve
Open

feat: add sem-approve command parameters to include secrets, enable cache in forked PRs#1026
dexyk wants to merge 19 commits into
mainfrom
dk/sem_full_approve

Conversation

@dexyk

@dexyk dexyk commented May 13, 2026

Copy link
Copy Markdown
Contributor

📝 Description

Adds /sem-approve --include-secrets and --enable-cache for forked pull requests, letting a project member grant an approved forked-PR workflow the project secrets and build cache that forks are denied by default. zebra applies this to pipeline jobs only, debug/attach filtering, org secret-access rules (JOB_DEBUG_NO/JOB_ATTACH_NO), and the SSH-debug gate are unchanged. The whole capability is gated by a new org feature flag sem_approve_options (off by default).

✅ Checklist

  • I have tested this change
  • This change requires documentation update

@github-project-automation github-project-automation Bot moved this to Backlog in Roadmap May 13, 2026
@dexyk
dexyk force-pushed the dk/sem_full_approve branch 3 times, most recently from 8d79691 to 2c84018 Compare July 13, 2026 12:28
@dexyk
dexyk marked this pull request as ready for review July 13, 2026 12:28
@dexyk
dexyk force-pushed the dk/sem_full_approve branch from 2c84018 to da922f0 Compare July 14, 2026 09:07
dexyk added 11 commits July 21, 2026 16:52
- Introduced `RepoHost::Github::ApprovalCommand` with tests for command recognition and option parsing.
- Updated `RepoHost::Github::Payload` tests to utilize a helper method for creating comment payloads, improving readability and maintainability.
- Enhanced `WebhookFilter` tests to ensure proper handling of approval commands, including edge cases for inline commands, blockquotes, and trailing text.
- Modified `Handler` tests to bind approval actions to the correct workflow based on comment timestamps, ensuring that approvals are not affected by subsequent pushes.
- Updated permission checks to use immutable user IDs instead of usernames, enhancing security and reliability.
@dexyk
dexyk force-pushed the dk/sem_full_approve branch from da922f0 to 8d0bbc8 Compare July 22, 2026 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant