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 23
23
mongodb-version : [4.4]
24
24
25
25
steps :
26
+ - name : Harden Runner
27
+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
28
+ with :
29
+ egress-policy : audit
30
+
26
31
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
27
32
with :
28
33
fetch-depth : 0
72
77
path : build
73
78
74
79
- name : Run cypress test
75
- uses : cypress-io/github-action@v6
80
+ uses : cypress-io/github-action@7271bed2a170d73c0b08939cd192db51a1c46c50 # v6.7.10
76
81
with :
77
82
start : npm start &
78
83
wait-on : " http://localhost:3000"
Original file line number Diff line number Diff line change 19
19
schedule :
20
20
- cron : ' 25 10 * * 1'
21
21
22
+ permissions :
23
+ contents : read
24
+
22
25
jobs :
23
26
analyze :
24
27
name : Analyze
47
50
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
48
51
49
52
steps :
53
+ - name : Harden Runner
54
+ uses : step-security/harden-runner@v2
55
+ with :
56
+ egress-policy : audit
57
+
50
58
- name : Checkout repository
51
59
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
52
60
Original file line number Diff line number Diff line change 9
9
dependency-review :
10
10
runs-on : ubuntu-latest
11
11
steps :
12
+ - name : Harden Runner
13
+ uses : step-security/harden-runner@v2
14
+ with :
15
+ egress-policy : audit
16
+
12
17
- name : ' Checkout Repository'
13
18
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
14
19
- name : Dependency Review
Original file line number Diff line number Diff line change 23
23
mongodb-version : [4.4]
24
24
25
25
steps :
26
+ - name : Harden Runner
27
+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
28
+ with :
29
+ egress-policy : audit
30
+
26
31
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
27
32
with :
28
33
fetch-depth : 0
Original file line number Diff line number Diff line change 3
3
push :
4
4
tags :
5
5
- ' license-inventory-*'
6
+ permissions :
7
+ contents : read
8
+
6
9
jobs :
7
10
build :
8
11
runs-on : ubuntu-latest
9
12
steps :
13
+ - name : Harden Runner
14
+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
15
+ with :
16
+ egress-policy : audit
17
+
10
18
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
11
19
12
20
# Setup .npmrc file to publish to npm
Original file line number Diff line number Diff line change @@ -5,11 +5,19 @@ on: [pull_request]
5
5
env : # environment variables (available in any part of the action)
6
6
NODE_VERSION : 18
7
7
8
+ permissions :
9
+ contents : read
10
+
8
11
jobs :
9
12
linting :
10
13
name : Linting
11
14
runs-on : ubuntu-latest
12
15
steps : # list of steps
16
+ - name : Harden Runner
17
+ uses : step-security/harden-runner@v2
18
+ with :
19
+ egress-policy : audit
20
+
13
21
- name : Install NodeJS
14
22
uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
15
23
with :
Original file line number Diff line number Diff line change @@ -2,10 +2,18 @@ name: Publish to NPM
2
2
on :
3
3
release :
4
4
types : [published]
5
+ permissions :
6
+ contents : read
7
+
5
8
jobs :
6
9
build :
7
10
runs-on : ubuntu-latest
8
11
steps :
12
+ - name : Harden Runner
13
+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
14
+ with :
15
+ egress-policy : audit
16
+
9
17
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
10
18
# Setup .npmrc file to publish to npm
11
19
- uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
Original file line number Diff line number Diff line change 21
21
name : Validate & Label PR
22
22
runs-on : ubuntu-latest
23
23
steps :
24
+ - name : Harden Runner
25
+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
26
+ with :
27
+ egress-policy : audit
28
+
24
29
- uses : amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5
25
30
env :
26
31
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 5
5
tags :
6
6
- ' sample-*'
7
7
8
+ permissions :
9
+ contents : read
10
+
8
11
jobs :
9
12
build :
10
13
runs-on : ubuntu-latest
11
14
steps :
15
+ - name : Harden Runner
16
+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
17
+ with :
18
+ egress-policy : audit
19
+
12
20
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
13
21
# Setup .npmrc file to publish to npm
14
22
- uses : actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
Original file line number Diff line number Diff line change 8
8
unused-dependecies :
9
9
runs-on : ubuntu-latest
10
10
steps :
11
+ - name : Harden Runner
12
+ uses : step-security/harden-runner@v2
13
+ with :
14
+ egress-policy : audit
15
+
11
16
- name : ' Checkout Repository'
12
17
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
13
18
- name : ' Setup Node.js'
You can’t perform that action at this time.
0 commit comments