Skip to content

Commit 9289228

Browse files
committed
Begin narrowing down the required permissions
1 parent 52e02e6 commit 9289228

File tree

1 file changed

+10
-29
lines changed

1 file changed

+10
-29
lines changed

.github/workflows/build.yaml

Lines changed: 10 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -221,42 +221,23 @@ jobs:
221221
- { qt: '6.7.3', cc: gcc }
222222
- { qt: '6.8.0', cc: gcc }
223223
steps:
224-
#- run: sudo plutil -p '/System/Library/PrivateFrameworks/TCC.framework/Resources/en.lproj/Localizable.strings'
225-
- run: sqlite3 '/Library/Application Support/com.apple.TCC/TCC.db' '.schema'
226-
- if: matrix.os != 'macos-13'
227-
run: >
228-
sudo sqlite3 '/Library/Application Support/com.apple.TCC/TCC.db' "INSERT or REPLACE INTO access
229-
( service, client, client_type, auth_value, auth_reason, auth_version, flags ) VALUES
230-
( 'kTCCServiceBluetoothAlways', 'com.apple.Terminal', 0, 2, 3, 1, 0 ),
231-
( 'kTCCServiceBluetoothPeripheral', 'com.apple.Terminal', 0, 2, 3, 1, 0 ),
232-
( 'kTCCServiceBluetoothWhileInUse', 'com.apple.Terminal', 0, 2, 3, 1, 0 ),
233-
( 'kTCCServiceBluetoothAlways', '/bin/bash', 1, 2, 3, 1, 0 ),
234-
( 'kTCCServiceBluetoothPeripheral', '/bin/bash', 1, 2, 3, 1, 0 ),
235-
( 'kTCCServiceBluetoothWhileInUse', '/bin/bash', 1, 2, 3, 1, 0 ),
236-
( 'kTCCServiceBluetoothAlways', '/usr/local/opt/runner/runprovisioner.sh', 1, 2, 3, 1, 0 ),
237-
( 'kTCCServiceBluetoothPeripheral', '/usr/local/opt/runner/runprovisioner.sh', 1, 2, 3, 1, 0 ),
238-
( 'kTCCServiceBluetoothWhileInUse', '/usr/local/opt/runner/runprovisioner.sh', 1, 2, 3, 1, 0 ),
239-
( 'kTCCServiceBluetoothAlways', '/usr/local/opt/runner/provisioner/provisioner', 1, 2, 3, 1, 0 ),
240-
( 'kTCCServiceBluetoothPeripheral', '/usr/local/opt/runner/provisioner/provisioner', 1, 2, 3, 1, 0 ),
241-
( 'kTCCServiceBluetoothWhileInUse', '/usr/local/opt/runner/provisioner/provisioner', 1, 2, 3, 1, 0 )"
242-
- run: sqlite3 '/Library/Application Support/com.apple.TCC/TCC.db' 'select * from access'
243224
- run: sqlite3 "$HOME/Library/Application Support/com.apple.TCC/TCC.db" '.schema'
244225
- if: matrix.os != 'macos-13'
245226
run: >
246227
sudo sqlite3 "$HOME/Library/Application Support/com.apple.TCC/TCC.db" "INSERT or REPLACE INTO access
247228
( service, client, client_type, auth_value, auth_reason, auth_version, flags ) VALUES
248-
( 'kTCCServiceBluetoothAlways', 'com.apple.Terminal', 0, 2, 3, 1, 0 ),
249-
( 'kTCCServiceBluetoothPeripheral', 'com.apple.Terminal', 0, 2, 3, 1, 0 ),
250-
( 'kTCCServiceBluetoothWhileInUse', 'com.apple.Terminal', 0, 2, 3, 1, 0 ),
251229
( 'kTCCServiceBluetoothAlways', '/bin/bash', 1, 2, 3, 1, 0 ),
252230
( 'kTCCServiceBluetoothPeripheral', '/bin/bash', 1, 2, 3, 1, 0 ),
253-
( 'kTCCServiceBluetoothWhileInUse', '/bin/bash', 1, 2, 3, 1, 0 ),
254-
( 'kTCCServiceBluetoothAlways', '/usr/local/opt/runner/runprovisioner.sh', 1, 2, 3, 1, 0 ),
255-
( 'kTCCServiceBluetoothPeripheral', '/usr/local/opt/runner/runprovisioner.sh', 1, 2, 3, 1, 0 ),
256-
( 'kTCCServiceBluetoothWhileInUse', '/usr/local/opt/runner/runprovisioner.sh', 1, 2, 3, 1, 0 ),
257-
( 'kTCCServiceBluetoothAlways', '/usr/local/opt/runner/provisioner/provisioner', 1, 2, 3, 1, 0 ),
258-
( 'kTCCServiceBluetoothPeripheral', '/usr/local/opt/runner/provisioner/provisioner', 1, 2, 3, 1, 0 ),
259-
( 'kTCCServiceBluetoothWhileInUse', '/usr/local/opt/runner/provisioner/provisioner', 1, 2, 3, 1, 0 )"
231+
( 'kTCCServiceBluetoothWhileInUse', '/bin/bash', 1, 2, 3, 1, 0 )"
232+
# ( 'kTCCServiceBluetoothAlways', '/usr/local/opt/runner/runprovisioner.sh', 1, 2, 3, 1, 0 ),
233+
# ( 'kTCCServiceBluetoothPeripheral', '/usr/local/opt/runner/runprovisioner.sh', 1, 2, 3, 1, 0 ),
234+
# ( 'kTCCServiceBluetoothWhileInUse', '/usr/local/opt/runner/runprovisioner.sh', 1, 2, 3, 1, 0 ),
235+
# ( 'kTCCServiceBluetoothAlways', '/usr/local/opt/runner/provisioner/provisioner', 1, 2, 3, 1, 0 ),
236+
# ( 'kTCCServiceBluetoothPeripheral', '/usr/local/opt/runner/provisioner/provisioner', 1, 2, 3, 1, 0 ),
237+
# ( 'kTCCServiceBluetoothWhileInUse', '/usr/local/opt/runner/provisioner/provisioner', 1, 2, 3, 1, 0 )"
238+
# ( 'kTCCServiceBluetoothAlways', 'com.apple.Terminal', 0, 2, 3, 1, 0 ),
239+
# ( 'kTCCServiceBluetoothPeripheral', 'com.apple.Terminal', 0, 2, 3, 1, 0 ),
240+
# ( 'kTCCServiceBluetoothWhileInUse', 'com.apple.Terminal', 0, 2, 3, 1, 0 ),
260241
- run: sqlite3 "$HOME/Library/Application Support/com.apple.TCC/TCC.db" 'select * from access'
261242
- uses: actions/checkout@v4
262243
- name: Install lcov

0 commit comments

Comments
 (0)