Merge pull request #9 from davidism/remove-slsa
Some checks failed
pre-commit / main (push) Has been cancelled

remove slsa provenance
This commit is contained in:
David Lord 2025-06-14 12:52:19 -07:00 committed by GitHub
commit 1c25aeaa19
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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@887a942a15af3a7626099df99e897a18d9e5ab3a # v5.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@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
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.0.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/modify-repos/${{ github.ref_name }}