@@ -40,12 +40,12 @@ jobs:
4040 # via the 'ref' client parameter.
4141 steps :
4242 - name : Checkout source for staging
43- uses : actions/checkout@v4
43+ uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # 4.3.1
4444 with :
4545 ref : ${{ github.event.client_payload.ref || github.ref }}
4646
4747 - name : Set up Python
48- uses : actions/setup-python@v5
48+ uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # 5.6.0
4949 with :
5050 python-version : 3.9
5151
7474 # Attach the packaged artifacts to the workflow output. These can be manually
7575 # downloaded for later inspection if necessary.
7676 - name : Archive artifacts
77- uses : actions/upload-artifact@v4
77+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
7878 with :
7979 name : dist
8080 path : dist
9393 startsWith(github.event.pull_request.title, '[chore] Release ')
9494
9595 runs-on : ubuntu-latest
96+ environment : Release
9697 permissions :
9798 # Used to create a short-lived OIDC token which is given to PyPi to identify this workflow job
9899 # See: https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/about-security-hardening-with-openid-connect#adding-permissions-settings
@@ -102,11 +103,11 @@ jobs:
102103
103104 steps :
104105 - name : Checkout source for publish
105- uses : actions/checkout@v4
106+ uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # 4.3.1
106107
107108 # Download the artifacts created by the stage_release job.
108109 - name : Download release candidates
109- uses : actions/download-artifact@v4.1.7
110+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
110111 with :
111112 name : dist
112113 path : dist
@@ -124,13 +125,13 @@ jobs:
124125 --notes '${{ steps.preflight.outputs.changelog }}'
125126
126127 - name : Publish to Pypi
127- uses : pypa/gh-action-pypi-publish@release/v1
128+ uses : pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
128129
129130 # Post to Twitter if explicitly opted-in by adding the label 'release:tweet'.
130131 - name : Post to Twitter
131132 if : success() &&
132133 contains(github.event.pull_request.labels.*.name, 'release:tweet')
133- uses : firebase/firebase-admin-node/.github/actions/send-tweet@main
134+ uses : firebase/firebase-admin-node/.github/actions/send-tweet@2e2b36a84ba28679bcb7aecdacabfec0bded2d48 # Admin Node SDK v13.6.0
134135 with :
135136 status : >
136137 ${{ steps.preflight.outputs.version }} of @Firebase Admin Python SDK is available.
0 commit comments