From d5f2ec948e4e4d448ce41435aef6db13446ee99c Mon Sep 17 00:00:00 2001 From: David Lord Date: Sat, 14 Jun 2025 13:09:24 -0700 Subject: [PATCH] remove slsa provenance PyPI and trusted publishing has built-in attestation support now. --- .github/workflows/publish.yaml | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index bf01ee5..38c06d2 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -5,8 +5,6 @@ on: jobs: build: runs-on: ubuntu-latest - outputs: - hash: ${{ steps.hash.outputs.hash }} steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v6.1.0 @@ -18,24 +16,11 @@ jobs: python-version-file: pyproject.toml - run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV - run: uv build - - name: generate hash - id: hash - run: cd dist && echo "hash=$(sha256sum * | base64 -w0)" >> $GITHUB_OUTPUT - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: path: ./dist - provenance: - needs: [build] - permissions: - actions: read - id-token: write - contents: write - # Can't pin with hash due to how this workflow works. - uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.1.0 - with: - base64-subjects: ${{ needs.build.outputs.hash }} create-release: - needs: [provenance] + needs: [build] runs-on: ubuntu-latest permissions: contents: write @@ -44,12 +29,11 @@ jobs: - name: create release run: > gh release create --draft --repo ${{ github.repository }} - ${{ github.ref_name }} - *.intoto.jsonl/* artifact/* + ${{ github.ref_name }} artifact/* env: GH_TOKEN: ${{ github.token }} publish-pypi: - needs: [provenance] + needs: [build] environment: name: publish url: https://pypi.org/project/blinker/${{ github.ref_name }}