Skip to content

Commit 5718838

Browse files
authored
Set github actions to use commit hashes (#8852)
1 parent 14d9721 commit 5718838

7 files changed

+30
-120
lines changed

Diff for: .github/workflows/check-changeset.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,25 @@ jobs:
5757
- name: Print blocking failure status
5858
run: echo "${{steps.check-changeset.outputs.BLOCKING_FAILURE}}"
5959
- name: Find Comment
60-
uses: peter-evans/find-comment@v3
60+
# This commit represents v3.1.0
61+
uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e
6162
id: fc
6263
with:
6364
issue-number: ${{github.event.number}}
6465
body-includes: Changeset File Check
6566
- name: Create comment (missing packages)
6667
if: ${{!steps.fc.outputs.comment-id && steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE}}
67-
uses: peter-evans/create-or-update-comment@v4
68+
# This commit represents v4.0.0
69+
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043
6870
with:
6971
issue-number: ${{github.event.number}}
7072
body: |
7173
### Changeset File Check :warning:
7274
${{steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE}}
7375
- name: Update comment (missing packages)
7476
if: ${{steps.fc.outputs.comment-id && steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE}}
75-
uses: peter-evans/create-or-update-comment@v4
77+
# This commit represents v4.0.0
78+
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043
7679
with:
7780
comment-id: ${{steps.fc.outputs.comment-id}}
7881
edit-mode: replace
@@ -81,7 +84,8 @@ jobs:
8184
${{steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE}}
8285
- name: Update comment (no missing packages)
8386
if: ${{steps.fc.outputs.comment-id && !steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE}}
84-
uses: peter-evans/create-or-update-comment@v4
87+
# This commit represents v4.0.0
88+
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043
8589
with:
8690
comment-id: ${{steps.fc.outputs.comment-id}}
8791
edit-mode: replace

Diff for: .github/workflows/check-vertexai-responses.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,16 @@ jobs:
3535
echo "latest_tag=$LATEST" >> $GITHUB_ENV
3636
working-directory: packages/vertexai/test-utils/vertexai-sdk-test-data
3737
- name: Find comment from previous run if exists
38-
uses: peter-evans/find-comment@v3
38+
# This commit represents v3.1.0
39+
uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e
3940
id: fc
4041
with:
4142
issue-number: ${{github.event.number}}
4243
body-includes: Vertex AI Mock Responses Check
4344
- name: Comment on PR if newer version is available
4445
if: ${{env.cloned_tag != env.latest_tag && !steps.fc.outputs.comment-id}}
45-
uses: peter-evans/create-or-update-comment@v4
46+
# This commit represents v4.0.0
47+
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043
4648
with:
4749
issue-number: ${{github.event.number}}
4850
body: >

Diff for: .github/workflows/health-metrics-pull-request.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,12 @@ jobs:
4242
- uses: actions/setup-node@v4
4343
with:
4444
node-version: 22.10.0
45-
- uses: 'google-github-actions/auth@v0'
45+
# This commit represents v0.8.3
46+
- uses: 'google-github-actions/auth@c4799db9111fba4461e9f9da8732e5057b394f72'
4647
with:
4748
credentials_json: '${{ secrets.GCP_SA_KEY }}'
48-
- uses: google-github-actions/setup-gcloud@v2
49+
# This commit represents v2.1.4
50+
- uses: google-github-actions/setup-gcloud@77e7a554d41e2ee56fc945c52dfd3f33d12def9a
4951
- run: yarn install
5052
- run: yarn build
5153
- name: Run health-metrics/binary-size test
@@ -59,10 +61,12 @@ jobs:
5961
- uses: actions/setup-node@v4
6062
with:
6163
node-version: 22.10.0
62-
- uses: 'google-github-actions/auth@v0'
64+
# This commit represents v0.8.3
65+
- uses: 'google-github-actions/auth@c4799db9111fba4461e9f9da8732e5057b394f72'
6366
with:
6467
credentials_json: '${{ secrets.GCP_SA_KEY }}'
65-
- uses: google-github-actions/setup-gcloud@v2
68+
# This commit represents v2.1.4
69+
- uses: google-github-actions/setup-gcloud@77e7a554d41e2ee56fc945c52dfd3f33d12def9a
6670
- run: yarn install
6771
- run: yarn build
6872
- name: Run health-metrics/modular-exports-binary-size test

Diff for: .github/workflows/health-metrics-release.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@ jobs:
2323
name: Release Diffing
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: 'google-github-actions/auth@v0'
26+
# This commit represents v0.8.3
27+
- uses: 'google-github-actions/auth@c4799db9111fba4461e9f9da8732e5057b394f72'
2728
with:
2829
credentials_json: '${{ secrets.GCP_SA_KEY }}'
29-
- uses: google-github-actions/setup-gcloud@v2
30-
- uses: FirebaseExtended/github-actions/health-metrics/release-diffing@master
30+
# This commit represents v2.1.4
31+
- uses: google-github-actions/setup-gcloud@77e7a554d41e2ee56fc945c52dfd3f33d12def9a
32+
# This commit represents v1.4
33+
- uses: FirebaseExtended/github-actions/health-metrics/release-diffing@41c787c37157e4c5932b951e531c041efa5bb7a4
3134
with:
3235
repo: ${{ github.repository }}
3336
ref: ${{ github.ref }}

Diff for: .github/workflows/merge-release-branch.yml

-50
This file was deleted.

Diff for: .github/workflows/release-tweet.yml

-55
This file was deleted.

Diff for: .github/workflows/test-changed-firestore-integration.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,17 @@ jobs:
3333
with:
3434
# This makes Actions fetch all Git history so run-changed script can diff properly.
3535
fetch-depth: 0
36-
- uses: 'google-github-actions/auth@v0'
36+
# This commit represents v0.8.3
37+
- uses: 'google-github-actions/auth@c4799db9111fba4461e9f9da8732e5057b394f72'
3738
if: ${{ fromJSON(env.run_terraform_steps) }}
3839
with:
3940
credentials_json: '${{ secrets.JSSDK_ACTIONS_SA_KEY }}'
4041

4142
# create composite indexes with Terraform
4243
- name: Setup Terraform
4344
if: ${{ fromJSON(env.run_terraform_steps) }}
44-
uses: hashicorp/setup-terraform@v2
45+
# This commit represents v3.1.2
46+
uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd
4547
- name: Terraform Init
4648
if: ${{ fromJSON(env.run_terraform_steps) }}
4749
run: |

0 commit comments

Comments
 (0)