99 outputs :
1010 hash : ${{ steps.hash.outputs.hash }}
1111 steps :
12- - uses : actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
13- - uses : actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435
12+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
13+ - uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
1414 with :
1515 python-version : ' 3.x'
16- cache : ' pip'
17- cache-dependency-path : ' requirements/*.txt'
16+ cache : pip
17+ cache-dependency-path : requirements* /*.txt
1818 - 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
@@ -23,28 +23,28 @@ jobs:
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@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.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.7 .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@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
4848 - name : create release
4949 run : >
5050 gh release create --draft --repo ${{ github.repository }}
@@ -53,20 +53,17 @@ 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/click/${{ 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@29930c9cf57955dc1b98162d0d8bc3ec80d9e75c
67- with :
68- repository-url : https://test.pypi.org/legacy/
69- packages-dir : artifact/
70- - uses : pypa/gh-action-pypi-publish@29930c9cf57955dc1b98162d0d8bc3ec80d9e75c
66+ - uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
67+ - uses : pypa/gh-action-pypi-publish@15c56dba361d8335944d31a2ecd17d700fc7bcbc # v1.12.2
7168 with :
7269 packages-dir : artifact/
0 commit comments