You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 13, 2023. It is now read-only.
| `version` | | Crate version to install | string | latest |
64
+
| `use-tool-cache` | | Use pre-compiled crates to speed-up installation | bool | false |
65
+
66
+
## Tool cache
67
+
68
+
As it was mentioned in [How does it work?](#how-does-it-work) section,
69
+
this Action can use external cache with the pre-compiled crates in it.
70
+
71
+
In order to use it, you need to **explicitly** enable `use-tool-cache` input:
72
+
73
+
```yaml
74
+
- uses: actions-rs/install@master
75
+
with:
76
+
crate: cargo-audit
77
+
version: latest
78
+
use-tool-cache: true
79
+
```
80
+
81
+
Before enabling this input, you should acknowledge security risks
82
+
of executing pre-compiled binaries in your CI workflows.
83
+
84
+
### Security considerations
60
85
61
-
## Security considerations
86
+
Check the [`tool-cache`](https://github.com/actions-rs/tool-cache/) repo
87
+
to under understand how binary crates are built, signed and uploaded to the external cache.
62
88
63
-
You should acknowledge that in order to speed up the crates installation,
64
-
this Action uses pre-built binaries stored in the external storage.
89
+
This Action downloads both binary file and its signature.\
90
+
Signature validation is proceeded by `openssl` and public key (`public.pem`)
91
+
of the same certificate used for signing files at `tool-cache` repo.
65
92
66
-
Before using this Action consider checking the [Security considerations](https://github.com/actions-rs/tool-cache/blob/master/README.md#security-considerations) chapter
67
-
of the tool cache builder to understand how this might affect you.
93
+
If signature validation fails, binary file is removed immediately,
94
+
warning issued and fall back to the `cargo install` call happens.
0 commit comments