88 branches :
99 - main
1010
11+ permissions :
12+ contents : read
13+
1114jobs :
1215 lint :
1316 runs-on : ubuntu-latest
1417 steps :
15- - uses : actions/checkout@v3
18+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
1619 - name : Cache node modules
17- uses : actions/cache@v3
20+ uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
1821 env :
1922 cache-name : cache-node-modules
2023 with :
@@ -41,17 +44,17 @@ jobs:
4144 NYC_REPORT_DIR : coverage_unit_node${{ matrix.node-version }}
4245
4346 steps :
44- - uses : actions/setup-node@v4
47+ - uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
4548 with :
4649 node-version : ${{ matrix.node-version }}
47- - uses : actions/checkout@v3
50+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
4851 - name : Set up Python 3.10 for Node 14
4952 if : ${{ matrix.node-version == '14' }}
50- uses : actions/setup-python@v4
53+ uses : actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4
5154 with :
5255 python-version : ' 3.10'
5356 - name : Cache node modules
54- uses : actions/cache@v3
57+ uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
5558 with :
5659 path : ~/.npm
5760 key : ${{ runner.os }}-${{ matrix.node-version }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
6568 npm run test
6669 - run : tar -cvf ${{ env.NYC_REPORT_DIR }}.tar ${{ env.NYC_REPORT_DIR }}
6770 - name : Store coverage report
68- uses : actions/upload-artifact@v4
71+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
6972 with :
7073 name : ${{ env.NYC_REPORT_DIR }}
7174 path : ${{ env.NYC_REPORT_DIR }}.tar
8689 NYC_REPORT_DIR : coverage_e2e
8790
8891 steps :
89- - uses : actions/checkout@v3
92+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
9093 - name : Cache node modules
91- uses : actions/cache@v3
94+ uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
9295 with :
9396 path : ~/.npm
9497 key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
@@ -102,7 +105,7 @@ jobs:
102105 NODE_OPTIONS="--max-old-space-size=4096" npm run e2e
103106 - run : tar -cvf ${{ env.NYC_REPORT_DIR }}.tar ${{ env.NYC_REPORT_DIR }}
104107 - name : Store coverage report
105- uses : actions/upload-artifact@v4
108+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
106109 with :
107110 name : ${{ env.NYC_REPORT_DIR }}
108111 path : ${{ env.NYC_REPORT_DIR }}.tar
@@ -115,17 +118,17 @@ jobs:
115118 cache-name : cache-node-modules
116119
117120 steps :
118- - uses : actions/checkout@v3
121+ - uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
119122 - name : Cache node modules
120- uses : actions/cache@v3
123+ uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
121124 with :
122125 path : ~/.npm
123126 key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
124127 restore-keys : |
125128 ${{ runner.os }}-build-${{ env.cache-name }}-
126129 ${{ runner.os }}-build-
127130 ${{ runner.os }}-
128- - uses : actions/download-artifact@v4
131+ - uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
129132 with :
130133 pattern : coverage_*
131134 merge-multiple : true
@@ -135,7 +138,7 @@ jobs:
135138 rm coverage_*.tar
136139 - run : ls -la
137140 - name : Coverage
138- uses : codecov/codecov-action@v3
141+ uses : codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457 # v3
139142 with :
140143 token : ${{ secrets.CODECOV_TOKEN }}
141144 fail_ci_if_error : true
0 commit comments