@@ -25,15 +25,19 @@ jobs:
2525 - web-api
2626 - webhook
2727 runs-on : ${{ matrix.os }}
28+ permissions :
29+ contents : read
2830 steps :
2931 - name : Configure git settings (Windows)
3032 if : matrix.os == 'windows-latest'
3133 run : |
3234 git config --global core.autocrlf false
3335 git config --global core.eol lf
34- - uses : actions/checkout@v4
36+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
37+ with :
38+ persist-credentials : false
3539 - name : Use Node.js ${{ matrix.node-version }}
36- uses : actions/setup-node@v4
40+ uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
3741 with :
3842 node-version : ${{ matrix.node-version }}
3943 - run : npm --version
@@ -81,20 +85,20 @@ jobs:
8185 working-directory : packages/${{ matrix.package }}
8286 - name : Check for coverage report existence
8387 id : check_coverage
84- uses : andstor/file-existence-action@v3
88+ uses : andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3.0.0
8589 with :
8690 files : packages/${{ matrix.package }}/coverage/lcov.info
8791 - name : Upload code coverage
8892 if : matrix.node-version == '22.x' && matrix.os == 'ubuntu-latest' && steps.check_coverage.outputs.files_exists == 'true'
89- uses : codecov/codecov-action@v5
93+ uses : codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
9094 with :
9195 token : ${{ secrets.CODECOV_TOKEN }}
9296 directory : packages/${{ matrix.package }}/coverage
9397 flags : ${{ matrix.package }}
9498 verbose : true
9599 - name : Upload test results to Codecov
96100 if : ${{ !cancelled() }}
97- uses : codecov/test-results-action@v1
101+ uses : codecov/test-results-action@f2dba722c67b86c6caa034178c6e4d35335f6706 # v1.1.0
98102 with :
99103 file : packages/${{ matrix.package }}/coverage/test-results.xml
100104 flags : ${{ matrix.node-version }},${{ matrix.os }},${{ matrix.package }}
0 commit comments