99 outputs :
1010 hash : ${{ steps.hash.outputs.hash }}
1111 steps :
12- - uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744
13- - uses : actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1
12+ - uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
13+ - uses : actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
1414 with :
1515 python-version : ' 3.x'
16- cache : ' pip'
17- cache-dependency-path : ' requirements/*.txt'
18- - run : pip install build
16+ cache : pip
17+ cache-dependency-path : requirements* /*.txt
18+ - run : pip install -r requirements/ build.txt
1919 # Use the commit date instead of the current date during the build.
2020 - run : echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV
2121 - run : python -m build
2222 # Generate hashes used for provenance.
2323 - name : generate hash
2424 id : hash
2525 run : cd dist && echo "hash=$(sha256sum * | base64 -w0)" >> $GITHUB_OUTPUT
26- - uses : actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce
26+ - uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
2727 with :
2828 path : ./dist
2929 provenance :
30- needs : [' build' ]
30+ needs : [build]
3131 permissions :
3232 actions : read
3333 id-token : write
3434 contents : write
3535 # Can't pin with hash due to how this workflow works.
36- uses : slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v1.9 .0
36+ uses : slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.0 .0
3737 with :
3838 base64-subjects : ${{ needs.build.outputs.hash }}
3939 create-release :
4040 # Upload the sdist, wheels, and provenance to a GitHub release. They remain
4141 # available as build artifacts for a while as well.
42- needs : [' provenance' ]
42+ needs : [provenance]
4343 runs-on : ubuntu-latest
4444 permissions :
4545 contents : write
4646 steps :
47- - uses : actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
47+ - uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
4848 - name : create release
4949 run : >
5050 gh release create --draft --repo ${{ github.repository }}
@@ -53,20 +53,21 @@ jobs:
5353 env :
5454 GH_TOKEN : ${{ github.token }}
5555 publish-pypi :
56- needs : [' provenance' ]
56+ needs : [provenance]
5757 # Wait for approval before attempting to upload to PyPI. This allows reviewing the
5858 # files in the draft release.
59- environment : ' publish'
59+ environment :
60+ name : publish
61+ url : https://pypi.org/project/Flask-SQLAlchemy/${{ github.ref_name }}
6062 runs-on : ubuntu-latest
6163 permissions :
6264 id-token : write
6365 steps :
64- - uses : actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
65- # Try uploading to Test PyPI first, in case something fails.
66- - uses : pypa/gh-action-pypi-publish@b7f401de30cb6434a1e19f805ff006643653240e
66+ - uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
67+ - uses : pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450 # v1.8.14
6768 with :
6869 repository-url : https://test.pypi.org/legacy/
6970 packages-dir : artifact/
70- - uses : pypa/gh-action-pypi-publish@b7f401de30cb6434a1e19f805ff006643653240e
71+ - uses : pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450 # v1.8.14
7172 with :
7273 packages-dir : artifact/
0 commit comments