diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index e008e2b..03f1604 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -55,7 +55,7 @@ jobs: - name: Generate artifact attestation for sdist and wheel # If publishing to PyPI if: github.event_name == 'release' && github.event.action == 'published' && github.repository == 'yadage/yadage-schemas' - uses: actions/attest-build-provenance@6149ea5740be74af77f260b9db67e633f6b0a9a1 # v1.4.2 + uses: actions/attest-build-provenance@1c608d11d69870c2092266b3f9a6f3abbf17002c # v1.4.3 with: subject-path: "dist/yadage_schemas-*" @@ -74,15 +74,17 @@ jobs: if: >- (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'yadage/yadage-schemas') || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish == 'true' && github.repository == 'yadage/yadage-schemas') - uses: pypa/gh-action-pypi-publish@v1.9.0 + uses: pypa/gh-action-pypi-publish@v1.10.1 with: password: ${{ secrets.test_pypi_api_token }} repository_url: https://test.pypi.org/legacy/ print-hash: true + attestations: true - name: Publish distribution 📦 to PyPI if: github.event_name == 'release' && github.event.action == 'published' && github.repository == 'yadage/yadage-schemas' - uses: pypa/gh-action-pypi-publish@v1.9.0 + uses: pypa/gh-action-pypi-publish@v1.10.1 with: password: ${{ secrets.pypi_api_token }} print-hash: true + attestations: true