fix(ci): use github.token for bump-sha API push #195
Workflow file for this run
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
| # ───────────────────────────────────────────────────────────────────────────── | |
| # ci-self-test.yml — Workflow & action self-test entry. | |
| # ───────────────────────────────────────────────────────────────────────────── | |
| # Triggers on changes to workflows, actions, and linting config. Validates | |
| # syntax (actionlint, yamllint, shellcheck, pyflakes), security (zizmor, | |
| # SHA consistency), and structural contracts (bats tests). | |
| # | |
| # This is dogfooding: OpenCI tests its own workflow catalog using the same | |
| # CI patterns it ships to consumers. | |
| # ───────────────────────────────────────────────────────────────────────────── | |
| name: ci-self-test | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - ".github/workflows/**" | |
| - ".github/scripts/**" | |
| - "actions/**" | |
| - "manifest.yml" | |
| - "manifest-pending.yml" | |
| - ".github/actionlint.yaml" | |
| - ".yamllint" | |
| - "lefthook.yml" | |
| pull_request: | |
| paths: | |
| - ".github/workflows/**" | |
| - ".github/scripts/**" | |
| - "actions/**" | |
| - "manifest.yml" | |
| - "manifest-pending.yml" | |
| - ".github/actionlint.yaml" | |
| - ".yamllint" | |
| - "lefthook.yml" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| security-events: write # bats `self-test-routing` test asserts this is present | |
| concurrency: | |
| group: ci-self-test-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| self-test: | |
| uses: YiAgent/OpenCI/.github/workflows/reusable-self-test.yml@9b40a02acafd321f967761716fafcedb4a713f50 | |
| with: | |
| runner: ubuntu-latest | |
| secrets: inherit |