mirror of https://github.com/pallets/flask.git
remove slsa provenance
PyPI trusted publishing has its own attestation support now.
This commit is contained in:
parent
a42c4d54a3
commit
adeea00707
|
@ -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@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca # v6.0.1
|
- uses: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca # v6.0.1
|
||||||
|
@ -18,38 +16,22 @@ 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@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
||||||
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.1.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
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
|
||||||
- name: create release
|
- name: create release
|
||||||
run: >
|
run: gh release create --draft --repo ${{ github.repository }} ${{ github.ref_name }} artifact/*
|
||||||
gh release create --draft --repo ${{ github.repository }}
|
|
||||||
${{ github.ref_name }}
|
|
||||||
*.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/Flask/${{ github.ref_name }}
|
url: https://pypi.org/project/Flask/${{ github.ref_name }}
|
||||||
|
|
|
@ -166,11 +166,6 @@ select = [
|
||||||
force-single-line = true
|
force-single-line = true
|
||||||
order-by-type = false
|
order-by-type = false
|
||||||
|
|
||||||
[tool.gha-update]
|
|
||||||
tag-only = [
|
|
||||||
"slsa-framework/slsa-github-generator",
|
|
||||||
]
|
|
||||||
|
|
||||||
[tool.tox]
|
[tool.tox]
|
||||||
env_list = [
|
env_list = [
|
||||||
"py3.13", "py3.12", "py3.11", "py3.10", "py3.9",
|
"py3.13", "py3.12", "py3.11", "py3.10", "py3.9",
|
||||||
|
|
Loading…
Reference in New Issue