sentinel: harden FFI strict parsing for trust boundary 🛡️ #6064
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Droid Tag | |
| on: | |
| issue_comment: | |
| types: [created] | |
| pull_request_review_comment: | |
| types: [created] | |
| issues: | |
| types: [opened, assigned] | |
| pull_request_review: | |
| types: [submitted] | |
| pull_request: | |
| types: [opened, edited] | |
| jobs: | |
| droid: | |
| if: | | |
| ( | |
| github.event_name == 'issue_comment' && | |
| contains(github.event.comment.body, '@droid') && | |
| contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association) | |
| ) || | |
| ( | |
| github.event_name == 'pull_request_review_comment' && | |
| contains(github.event.comment.body, '@droid') && | |
| contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association) | |
| ) || | |
| ( | |
| github.event_name == 'pull_request_review' && | |
| contains(github.event.review.body, '@droid') && | |
| contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.review.author_association) | |
| ) || | |
| ( | |
| github.event_name == 'issues' && | |
| (contains(github.event.issue.body, '@droid') || contains(github.event.issue.title, '@droid')) && | |
| contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.issue.author_association) | |
| ) || | |
| ( | |
| github.event_name == 'pull_request' && | |
| github.event.pull_request.head.repo.full_name == github.repository && | |
| (contains(github.event.pull_request.body, '@droid') || contains(github.event.pull_request.title, '@droid')) && | |
| contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.pull_request.author_association) | |
| ) | |
| runs-on: ubuntu-latest | |
| env: | |
| MINIMAX_API_KEY: ${{ secrets.MINIMAX_API_KEY }} | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| issues: write | |
| id-token: write | |
| actions: read | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 1 | |
| - name: Configure MiniMax BYOK for Factory Droid | |
| shell: bash | |
| run: | | |
| mkdir -p "$HOME/.factory" | |
| cat > "$HOME/.factory/settings.json" <<'JSON' | |
| { | |
| "customModels": [ | |
| { | |
| "model": "MiniMax-M3", | |
| "displayName": "MiniMax-M3", | |
| "baseUrl": "https://api.minimax.io/anthropic", | |
| "apiKey": "${MINIMAX_API_KEY}", | |
| "provider": "anthropic", | |
| "maxOutputTokens": 64000 | |
| } | |
| ] | |
| } | |
| JSON | |
| - name: Run Droid Exec with MiniMax M3 BYOK | |
| uses: EffortlessMetrics/droid-action-safe@7c1377ccbacddc95560d1570547a5baa51de01ec # based on Factory-AI/droid-action v5; raw debug artifact upload disabled | |
| env: | |
| MINIMAX_API_KEY: ${{ secrets.MINIMAX_API_KEY }} | |
| ANTHROPIC_AUTH_TOKEN: "" | |
| ANTHROPIC_BASE_URL: "" | |
| with: | |
| factory_api_key: ${{ secrets.FACTORY_API_KEY }} | |
| upload_debug_artifacts: false | |
| review_depth: shallow | |
| review_model: "custom:MiniMax-M3-0" | |
| security_model: "custom:MiniMax-M3-0" | |
| show_full_output: false |