@@ -23,17 +23,22 @@ jobs:
2323 mongodb-version : [4.4]
2424
2525 steps :
26+ - name : Harden Runner
27+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
28+ with :
29+ egress-policy : audit
30+
2631 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2732 with :
2833 fetch-depth : 0
2934
3035 - name : Use Node.js ${{ matrix.node-version }}
31- uses : actions/setup-node@v4
36+ uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
3237 with :
3338 node-version : ${{ matrix.node-version }}
3439
3540 - name : Start MongoDB
36- uses : supercharge/mongodb-github-action@1.11 .0
41+ uses : supercharge/mongodb-github-action@90004df786821b6308fb02299e5835d0dae05d0d # 1.12 .0
3742 with :
3843 mongodb-version : ${{ matrix.mongodb-version }}
3944
4752 npm run test-coverage-ci --workspaces --if-present
4853
4954 - name : Upload test coverage report
50- uses : codecov/codecov-action@v5.1.2
55+ uses : codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # v5.3.1
5156 with :
5257 files : ./coverage/lcov.info
5358 token : ${{ secrets.CODECOV_TOKEN }}
@@ -59,20 +64,20 @@ jobs:
5964 run : npm run build
6065
6166 - name : Save build folder
62- uses : actions/upload-artifact@v4
67+ uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
6368 with :
6469 name : build
6570 if-no-files-found : error
6671 path : build
6772
6873 - name : Download the build folders
69- uses : actions/download-artifact@v4
74+ uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
7075 with :
7176 name : build
7277 path : build
7378
7479 - name : Run cypress test
75- uses : cypress-io/github-action@v6
80+ uses : cypress-io/github-action@7271bed2a170d73c0b08939cd192db51a1c46c50 # v6.7.10
7681 with :
7782 start : npm start &
7883 wait-on : " http://localhost:3000"
0 commit comments