Skip to content

feat(gha): Set workflow permissions for OIDC #31

feat(gha): Set workflow permissions for OIDC

feat(gha): Set workflow permissions for OIDC #31

Workflow file for this run

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 }}"