OSP Triage Report #76
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: OSP Triage Report | |
| on: | |
| workflow_run: | |
| workflows: ["Nightly OSP Suite"] | |
| types: [completed] | |
| workflow_dispatch: | |
| inputs: | |
| run_id: | |
| description: "nightly-osp run ID to analyze" | |
| required: true | |
| type: string | |
| auto_retry: | |
| description: "rerun failed jobs once before reporting" | |
| type: boolean | |
| default: false | |
| permissions: | |
| actions: write | |
| contents: read | |
| jobs: | |
| report: | |
| runs-on: ubuntu-latest | |
| # Skip untrusted fork-PR runs; only analyze canonical-repo runs. | |
| if: > | |
| github.event_name == 'workflow_dispatch' || | |
| github.event.workflow_run.head_repository.full_name == github.repository | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - name: Triage and report | |
| env: | |
| GH_REPO: ${{ github.repository }} | |
| RUN_ID: ${{ github.event_name == 'workflow_dispatch' && inputs.run_id || github.event.workflow_run.id }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
| ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | |
| AUTO_RETRY: ${{ github.event_name == 'workflow_run' && 'true' || github.event_name == 'workflow_dispatch' && inputs.auto_retry && 'true' || 'false' }} | |
| run: python3 .github/scripts/osp-triage.py |