Skip to content

Commit d3ae2d2

Browse files
committed
remove slsa provenance
PyPI and trusted publishing has built-in attestation support now.
1 parent 40f8645 commit d3ae2d2

1 file changed

Lines changed: 3 additions & 20 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ on:
66
jobs:
77
build:
88
runs-on: ubuntu-latest
9-
outputs:
10-
hash: ${{ steps.hash.outputs.hash }}
119
steps:
1210
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
1311
- uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
@@ -19,27 +17,13 @@ jobs:
1917
# Use the commit date instead of the current date during the build.
2018
- run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
2119
- run: python -m build
22-
# Generate hashes used for provenance.
23-
- name: generate hash
24-
id: hash
25-
run: cd dist && echo "hash=$(sha256sum * | base64 -w0)" >> $GITHUB_OUTPUT
2620
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
2721
with:
2822
path: ./dist
29-
provenance:
30-
needs: [build]
31-
permissions:
32-
actions: read
33-
id-token: write
34-
contents: write
35-
# Can't pin with hash due to how this workflow works.
36-
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.0.0
37-
with:
38-
base64-subjects: ${{ needs.build.outputs.hash }}
3923
create-release:
4024
# Upload the sdist, wheels, and provenance to a GitHub release. They remain
4125
# available as build artifacts for a while as well.
42-
needs: [provenance]
26+
needs: [sdist, wheels]
4327
runs-on: ubuntu-latest
4428
permissions:
4529
contents: write
@@ -48,12 +32,11 @@ jobs:
4832
- name: create release
4933
run: >
5034
gh release create --draft --repo ${{ github.repository }}
51-
${{ github.ref_name }}
52-
*.intoto.jsonl/* artifact/*
35+
${{ github.ref_name }} artifact/*
5336
env:
5437
GH_TOKEN: ${{ github.token }}
5538
publish-pypi:
56-
needs: [provenance]
39+
needs: [sdist, wheels]
5740
# Wait for approval before attempting to upload to PyPI. This allows reviewing the
5841
# files in the draft release.
5942
environment:

0 commit comments

Comments
 (0)