@@ -43,30 +43,30 @@ jobs:
43
43
run :
44
44
working-directory : ' generative-ai/snippets'
45
45
steps :
46
-
46
+ - uses : actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
47
47
with :
48
48
ref : ${{github.event.pull_request.head.sha}}
49
- -
uses :
' google-github-actions/[email protected] '
49
+ - uses : ' google-github-actions/auth@71fee32a0bb7e97b4d33d548e7d957010649d8fa ' # v2.1.3
50
50
with :
51
51
workload_identity_provider : ' projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider'
52
52
service_account :
' [email protected] '
53
53
create_credentials_file : ' true'
54
54
access_token_lifetime : 600s
55
55
- id : secrets
56
- uses : ' google-github-actions/get-secretmanager-secrets@v2 '
56
+ uses : ' google-github-actions/get-secretmanager-secrets@95a0b09b8348ef3d02c68c6ba5662a037e78d713 ' # v2
57
57
with :
58
58
secrets : |-
59
59
caip_id:nodejs-docs-samples-tests/nodejs-docs-samples-ai-platform-caip-project-id
60
60
location:nodejs-docs-samples-tests/nodejs-docs-samples-ai-platform-location
61
61
datastore_id:nodejs-docs-samples-tests/nodejs-docs-samples-ai-platform-datastore-id
62
-
62
+ - uses : actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
63
63
with :
64
64
node-version : 18
65
65
- name : Get npm cache directory
66
66
id : npm-cache-dir
67
67
shell : bash
68
68
run : echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
69
- - uses : actions/cache@v4
69
+ - uses : actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
70
70
id : npm-cache
71
71
with :
72
72
path : ${{ steps.npm-cache-dir.outputs.dir }}
92
92
DATASTORE_ID : ${{ steps.secrets.outputs.datastore_id }}
93
93
- name : upload test results for FlakyBot workflow
94
94
if : github.event.action == 'schedule' && always()
95
- uses : actions/upload-artifact@v3
95
+ uses : actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4
96
96
env :
97
97
MOCHA_REPORTER_OUTPUT : " ${{github.run_id}}_sponge_log.xml"
98
98
with :
0 commit comments