mirror of
https://github.com/davidism/modify-repos.git
synced 2025-09-04 06:50:35 +00:00
remove slsa provenance
PyPI and trusted publishing has built-in attestation support now.
This commit is contained in:
parent
4901f86f5e
commit
cc726074db
1 changed files with 3 additions and 19 deletions
22
.github/workflows/publish.yaml
vendored
22
.github/workflows/publish.yaml
vendored
|
@ -5,8 +5,6 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
|
||||||
hash: ${{ steps.hash.outputs.hash }}
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
- uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a # v5.1.0
|
- uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a # v5.1.0
|
||||||
|
@ -18,24 +16,11 @@ jobs:
|
||||||
python-version-file: pyproject.toml
|
python-version-file: pyproject.toml
|
||||||
- run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
|
- run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
|
||||||
- run: uv build
|
- 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
|
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
|
||||||
with:
|
with:
|
||||||
path: ./dist
|
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:
|
create-release:
|
||||||
needs: [provenance]
|
needs: [build]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
@ -44,12 +29,11 @@ jobs:
|
||||||
- name: create release
|
- name: create release
|
||||||
run: >
|
run: >
|
||||||
gh release create --draft --repo ${{ github.repository }}
|
gh release create --draft --repo ${{ github.repository }}
|
||||||
${{ github.ref_name }}
|
${{ github.ref_name }} artifact/*
|
||||||
*.intoto.jsonl/* artifact/*
|
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
publish-pypi:
|
publish-pypi:
|
||||||
needs: [provenance]
|
needs: [build]
|
||||||
environment:
|
environment:
|
||||||
name: publish
|
name: publish
|
||||||
url: https://pypi.org/project/modify-repos/${{ github.ref_name }}
|
url: https://pypi.org/project/modify-repos/${{ github.ref_name }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue