Skip to content

Commit a0ca323

Browse files
authored
feat: fsutil support (#13)
1 parent c13db53 commit a0ca323

12 files changed

Lines changed: 318 additions & 225 deletions

File tree

.github/workflows/main.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ jobs:
8282
mount-if-exists: false
8383
workspace-copy: true
8484
native-dev-drive: false
85+
trusted-dev-drive: false
8586
env-mapping: ''
8687

8788
test-formats:
@@ -144,6 +145,24 @@ jobs:
144145
working-directory: ${{ env.DEV_DRIVE }}
145146
run: New-Item test.txt
146147

148+
149+
test-trusted-mode:
150+
strategy:
151+
fail-fast: false
152+
matrix:
153+
runner: [ windows-2022, windows-2025 ]
154+
with-mount-path: [ true, false ]
155+
runs-on: ${{ matrix.runner }}
156+
steps:
157+
- name: Check out source code
158+
uses: actions/checkout@v4
159+
- name: Setup Dev Drive
160+
uses: ./
161+
with:
162+
native-dev-drive: true
163+
trusted-dev-drive: true
164+
mount-path: ${{ matrix.with-mount-path && 'mount' || '' }}
165+
147166
test-mount-path:
148167
strategy:
149168
fail-fast: false

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 3.4.0
2+
3+
* Add ability to mark dev drive as trusted.
4+
15
# 3.3.0
26

37
* Add `windows-2025` runner support.

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ You can optionally pass parameters to the action as follows:
5555
workspace-copy: false
5656
# Use native dev drive support when available. Defaults to true.
5757
native-dev-drive: true
58+
# Used to mark the native dev drive as trusted. Defaults to false.
59+
trusted-dev-drive: false
5860
# Custom mappings of output environment variables. Defaults to no mapping.
5961
env-mapping: |
6062
MY_PROJECT_BIN,{{ DEV_DRIVE }}/path/to/bin
@@ -161,6 +163,15 @@ This action will automatically use the built-in [Windows Dev Drive](https://lear
161163
on your behalf when it's available on your Windows runner and `ReFS` is used.
162164
You can use this option to turn this automatic usage off.
163165

166+
### *trusted-dev-drive*
167+
168+
By default, this option is set to `false`.
169+
170+
This action will not mark the dev drive as trusted and will leave it to default settings.
171+
When an additional degree of performance is desired, marking a native dev drive as trusted may help.
172+
173+
Consult [official documentation](https://learn.microsoft.com/en-us/windows/dev-drive/#understanding-security-risks-and-trust-in-relation-to-dev-drive)
174+
before considering enabling this functionality.
164175

165176
### *env-mapping*
166177

@@ -214,7 +225,7 @@ typical values of the environment variables and the rest of the input is then ap
214225
# ...
215226
```
216227

217-
## Environment Variables
228+
## Exported Environment Variables
218229

219230
These environment variables are meant to be used along `working-directory` to make sure
220231
your workflow commands are executing relative to your dev drive.

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ inputs:
2929
native-dev-drive:
3030
description: "Use native dev drive support when available."
3131
default: "true"
32+
trusted-dev-drive:
33+
description: "Use to mark a native dev drive as trusted."
34+
default: "false"
3235
env-mapping:
3336
description: "Allows mapping environment variables generated by this action to new user-defined ones."
3437
required: false

dist/cleanup/index.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/setup/index.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)