File tree Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 11---
22name : Code Health (fork)
33on :
4- pull_request_target :
4+ pull_request :
55 branches :
66 - main
77
8- permissions : {}
8+ permissions :
9+ contents : read
910
1011jobs :
1112 run-tests :
1213 name : Run MongoDB tests
13- # Code health disabled on forks for now
14- # if: github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.head.repo.full_name != github.repository
15- if : github.event.pull_request.user.login == 'dependabot[bot]'
14+ if : github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.head.repo.full_name != github.repository
1615 strategy :
1716 matrix :
1817 os : [ubuntu-latest, macos-latest, windows-latest]
2221 - uses : GitHubSecurityLab/actions-permissions/monitor@v1
2322 if : matrix.os == 'ubuntu-latest'
2423 - uses : actions/checkout@v5
24+ with :
25+ persist-credentials : false
2526 - uses : docker/setup-docker-action@v4
2627 if : matrix.os == 'ubuntu-latest'
2728 name : Setup Docker Environment
Original file line number Diff line number Diff line change 66 - main
77 pull_request :
88
9- permissions : {}
9+ permissions :
10+ contents : read
1011
1112jobs :
1213 run-tests :
2122 - uses : GitHubSecurityLab/actions-permissions/monitor@v1
2223 if : matrix.os == 'ubuntu-latest'
2324 - uses : actions/checkout@v5
25+ with :
26+ persist-credentials : false
2427 - uses : docker/setup-docker-action@v4
2528 if : matrix.os == 'ubuntu-latest'
2629 name : Setup Docker Environment
5154 steps :
5255 - uses : GitHubSecurityLab/actions-permissions/monitor@v1
5356 - uses : actions/checkout@v5
57+ with :
58+ persist-credentials : false
5459 - uses : actions/setup-node@v6
5560 with :
5661 node-version-file : package.json
7782 steps :
7883 - uses : GitHubSecurityLab/actions-permissions/monitor@v1
7984 - uses : actions/checkout@v5
85+ with :
86+ persist-credentials : false
8087 - uses : actions/setup-node@v4
8188 with :
8289 node-version-file : package.json
99106 needs : [run-tests, run-atlas-tests, run-atlas-local-tests]
100107 steps :
101108 - uses : actions/checkout@v5
109+ with :
110+ persist-credentials : false
102111 - uses : actions/setup-node@v6
103112 with :
104113 node-version-file : package.json
You can’t perform that action at this time.
0 commit comments