File tree Expand file tree Collapse file tree 10 files changed +66
-1
lines changed Expand file tree Collapse file tree 10 files changed +66
-1
lines changed Original file line number Diff line number Diff line change 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
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"
Original file line number Diff line number Diff line change 1919 schedule :
2020 - cron : ' 25 10 * * 1'
2121
22+ permissions :
23+ contents : read
24+
2225jobs :
2326 analyze :
2427 name : Analyze
4750 # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
4851
4952 steps :
53+ - name : Harden Runner
54+ uses : step-security/harden-runner@v2
55+ with :
56+ egress-policy : audit
57+
5058 - name : Checkout repository
5159 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
5260
Original file line number Diff line number Diff line change 99 dependency-review :
1010 runs-on : ubuntu-latest
1111 steps :
12+ - name : Harden Runner
13+ uses : step-security/harden-runner@v2
14+ with :
15+ egress-policy : audit
16+
1217 - name : ' Checkout Repository'
1318 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
1419 - name : Dependency Review
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 33 push :
44 tags :
55 - ' license-inventory-*'
6+ permissions :
7+ contents : read
8+
69jobs :
710 build :
811 runs-on : ubuntu-latest
912 steps :
13+ - name : Harden Runner
14+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
15+ with :
16+ egress-policy : audit
17+
1018 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
1119
1220 # Setup .npmrc file to publish to npm
Original file line number Diff line number Diff line change @@ -5,11 +5,19 @@ on: [pull_request]
55env : # environment variables (available in any part of the action)
66 NODE_VERSION : 18
77
8+ permissions :
9+ contents : read
10+
811jobs :
912 linting :
1013 name : Linting
1114 runs-on : ubuntu-latest
1215 steps : # list of steps
16+ - name : Harden Runner
17+ uses : step-security/harden-runner@v2
18+ with :
19+ egress-policy : audit
20+
1321 - name : Install NodeJS
1422 uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
1523 with :
Original file line number Diff line number Diff line change @@ -2,10 +2,18 @@ name: Publish to NPM
22on :
33 release :
44 types : [published]
5+ permissions :
6+ contents : read
7+
58jobs :
69 build :
710 runs-on : ubuntu-latest
811 steps :
12+ - name : Harden Runner
13+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
14+ with :
15+ egress-policy : audit
16+
917 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
1018 # Setup .npmrc file to publish to npm
1119 - uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
Original file line number Diff line number Diff line change 2121 name : Validate & Label PR
2222 runs-on : ubuntu-latest
2323 steps :
24+ - name : Harden Runner
25+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
26+ with :
27+ egress-policy : audit
28+
2429 - uses : amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5
2530 env :
2631 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 55 tags :
66 - ' sample-*'
77
8+ permissions :
9+ contents : read
10+
811jobs :
912 build :
1013 runs-on : ubuntu-latest
1114 steps :
15+ - name : Harden Runner
16+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
17+ with :
18+ egress-policy : audit
19+
1220 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
1321 # Setup .npmrc file to publish to npm
1422 - uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
Original file line number Diff line number Diff line change 88 unused-dependecies :
99 runs-on : ubuntu-latest
1010 steps :
11+ - name : Harden Runner
12+ uses : step-security/harden-runner@v2
13+ with :
14+ egress-policy : audit
15+
1116 - name : ' Checkout Repository'
1217 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
1318 - name : ' Setup Node.js'
You can’t perform that action at this time.
0 commit comments