chore: update GitHub STS action (#83) #52
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: Release | |
| on: | |
| push: | |
| branches: [main] | |
| concurrency: ${{ github.workflow }}-${{ github.ref }} | |
| permissions: {} | |
| jobs: | |
| release: | |
| name: Version | |
| runs-on: ubuntu-latest | |
| environment: pypi | |
| # The changelog-release version PR, branch, tags, and GitHub releases are | |
| # created with a short-lived GitHub App token minted via the github-sts | |
| # action (authorized by .github/sts/release-pr.sts.yaml); the built-in | |
| # GITHUB_TOKEN is not allowed to create pull requests. | |
| permissions: | |
| contents: read | |
| id-token: write # PyPI Trusted Publishing (OIDC) and the STS exchange | |
| steps: | |
| - name: Fetch GitHub token via STS | |
| id: app-token | |
| uses: tempoxyz/gh-actions/actions/github-sts@8819cf80bdcb39c36c34700e3f2ecc08bde54f23 # main | |
| with: | |
| policy: release-pr | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| token: ${{ steps.app-token.outputs.token }} | |
| fetch-depth: 0 | |
| persist-credentials: true | |
| - uses: tempoxyz/changelogs@a19f62e3fdbd6d07b8900eb0568ed09b868bf84d # OIDC trusted publishing | |
| with: | |
| ecosystem: python | |
| python-version: '3.12' | |
| conventional-commit: true | |
| github-token: ${{ steps.app-token.outputs.token }} |