feat(gha): Set workflow permissions for OIDC #31
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
| name: PR Checks | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - master | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| - edited | |
| jobs: | |
| pr-code-checks: | |
| name: Code | |
| runs-on: ubuntu-latest | |
| if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.action == 'reopened' | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| with: | |
| ref: ${{ github.head_ref || github.ref }} | |
| # Need full history and tags to find the last release. | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| # Work around occasional fetch-tags quirks. | |
| - run: git fetch --tags --force | |
| - name: Install Python | |
| uses: actions/setup-python@v5 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6.4.3 | |
| - name: Setup | |
| run: uv run task setup | |
| - name: Lint | |
| run: uv run task lint | |
| - name: Unit Test | |
| run: uv run task unit-test | |
| - name: Build | |
| run: uv run task build | |
| - name: Integration Test | |
| run: uv run task integration-test-no-build | |
| pr-content-checks: | |
| name: Content | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Validate PR title | |
| run: ./scripts/conventional-commit.sh "${{ github.event.pull_request.title }}" |