mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-06-06 13:53:54 +02:00
Merge pull request #45 from tauri-apps/ci/actions-rs
ci: don't use unmaintained actions-rs actions
This commit is contained in:
@@ -54,13 +54,13 @@ pub fn init<R: Runtime>() -> TauriPlugin<R> {
|
||||
.map_err(Error::from)
|
||||
.and_then(|scope| bincode::deserialize(&scope).map_err(Into::into))
|
||||
.unwrap_or_default();
|
||||
for allowed in scope.allowed_paths {
|
||||
for allowed in &scope.allowed_paths {
|
||||
// allows the path as is
|
||||
let _ = fs_scope.allow_file(allowed);
|
||||
#[cfg(feature = "protocol-asset")]
|
||||
let _ = asset_protocol_scope.allow_file(allowed);
|
||||
}
|
||||
for forbidden in scope.forbidden_patterns {
|
||||
for forbidden in &scope.forbidden_patterns {
|
||||
// forbid the path as is
|
||||
let _ = fs_scope.forbid_file(forbidden);
|
||||
#[cfg(feature = "protocol-asset")]
|
||||
|
||||
Reference in New Issue
Block a user