Skip to content

Commit c06de03

Browse files
authored
Adding probe file write option to fix sca vuln (#8)
1 parent f6d562f commit c06de03

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Plugins/BrowserStackAccessibilityLint/BrowserStackAccessibilityLint.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ private func packageCacheRoot() -> URL {
8282
}
8383
let probe = target.appendingPathComponent(".write-probe-\(UUID().uuidString)")
8484
do {
85-
try "probe".data(using: .utf8)?.write(to: probe, options: [.atomic])
85+
try "probe".data(using: .utf8)?.write(to: probe, options: [.atomic, .completeFileProtection])
8686
try? fm.removeItem(at: probe)
8787
} catch {
8888
forwardExit(code: 2, message: "Unable to access cache directory. Please include directive \"--allow-writing-to-directory ~/.cache/\" where you are invoking the Swift package")

0 commit comments

Comments
 (0)