Skip to content

restrict GITHUB_TOKEN permissions in tests workflow #1

restrict GITHUB_TOKEN permissions in tests workflow

restrict GITHUB_TOKEN permissions in tests workflow #1

Workflow file for this run

name: Publish
on:
push:
tags:
- 'v*'
jobs:
publish:
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Build
run: |
pip install build
python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1