Skip to content

Commit 5e2e191

Browse files
authored
remove slsa provenance (#2973)
2 parents d1a80aa + 35c22ca commit 5e2e191

2 files changed

Lines changed: 3 additions & 26 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ on:
55
jobs:
66
build:
77
runs-on: ubuntu-latest
8-
outputs:
9-
hash: ${{ steps.hash.outputs.hash }}
108
steps:
119
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1210
- uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v6.1.0
@@ -18,38 +16,22 @@ jobs:
1816
python-version-file: pyproject.toml
1917
- run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
2018
- run: uv build
21-
- name: generate hash
22-
id: hash
23-
run: cd dist && echo "hash=$(sha256sum * | base64 -w0)" >> $GITHUB_OUTPUT
2419
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
2520
with:
2621
path: ./dist
27-
provenance:
28-
needs: [build]
29-
permissions:
30-
actions: read
31-
id-token: write
32-
contents: write
33-
# Can't pin with hash due to how this workflow works.
34-
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.1.0
35-
with:
36-
base64-subjects: ${{ needs.build.outputs.hash }}
3722
create-release:
38-
needs: [provenance]
23+
needs: [build]
3924
runs-on: ubuntu-latest
4025
permissions:
4126
contents: write
4227
steps:
4328
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
4429
- name: create release
45-
run: >
46-
gh release create --draft --repo ${{ github.repository }}
47-
${{ github.ref_name }}
48-
*.intoto.jsonl/* artifact/*
30+
run: gh release create --draft --repo ${{ github.repository }} ${{ github.ref_name }} artifact/*
4931
env:
5032
GH_TOKEN: ${{ github.token }}
5133
publish-pypi:
52-
needs: [provenance]
34+
needs: [build]
5335
environment:
5436
name: publish
5537
url: https://pypi.org/project/click/${{ github.ref_name }}

pyproject.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,6 @@ ignore = [
140140
force-single-line = true
141141
order-by-type = false
142142

143-
[tool.gha-update]
144-
tag-only = [
145-
"slsa-framework/slsa-github-generator",
146-
]
147-
148143
[tool.tox]
149144
env_list = [
150145
"py3.13", "py3.12", "py3.11", "py3.10",

0 commit comments

Comments
 (0)