@@ -2,7 +2,9 @@ name: Build and Test
22
33on : push
44
5- permissions : read-all
5+ permissions :
6+ contents : read
7+
68
79# update in build.yml and codeql.yml at same time
810env :
1921
2022 steps :
2123
22- - uses : actions/checkout@v4
24+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
25+ with :
26+ persist-credentials : false
2327
24- - uses : actions/setup-node@v4
28+ - uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
2529 with :
2630 token : ${{ secrets.GITHUB_TOKEN }}
2731 node-version : 24
4246
4347 - run : npm run build
4448
45- - uses : actions/upload-artifact@v4
49+ - uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
4650 with :
4751 name : js
4852 path : |
@@ -83,14 +87,16 @@ jobs:
8387
8488
8589 steps :
86- - uses : actions/checkout@v6
90+ - uses : actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
91+ with :
92+ persist-credentials : false
8793
88- - uses : actions/download-artifact@v8
94+ - uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
8995 if : ${{ !env.ACT }}
9096 with :
9197 name : js
9298
93- - uses : bazel-contrib/setup-bazel@0.19.0
99+ - uses : bazel-contrib/setup-bazel@c5acdfb288317d0b5c0bbd7a396a3dc868bb0f86 # 0.19.0
94100 with :
95101 token : ${{ secrets.GITHUB_TOKEN }}
96102
@@ -104,7 +110,7 @@ jobs:
104110 # need to copy to output directory as `bazel-bin` is a symlink and cannot be read by the actions/upload-artifact action
105111 - run : cp bazel-bin/protobuf-javascript-* out/
106112
107- - uses : actions/upload-artifact@v4
113+ - uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
108114 with :
109115 name : release-${{ matrix.os }}-${{ matrix.cpu }}
110116 path : out
0 commit comments