Skip to content

Commit a762103

Browse files
tanbroclaude
andcommitted
ci: add DBMS_LOCK permission grant for Oracle tests
Create startup script to grant EXECUTE on DBMS_LOCK to test user, which is required for Oracle distributed locking functionality. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c467158 commit a762103

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
-- Grant DBMS_LOCK permission to the test user for distributed locking
2+
-- This script is run by gvenzl/setup-oracle-free action
3+
ALTER SESSION SET "_ORACLE_SCRIPT"=TRUE;
4+
5+
-- Grant execute on DBMS_LOCK to the app user
6+
GRANT EXECUTE ON SYS.DBMS_LOCK TO test;
7+
8+
-- Grant execute on DBMS_LOCK to PUBLIC (optional, for broader access)
9+
-- COMMENT: Not granting to PUBLIC for security reasons
10+
11+
-- Verify the grant
12+
SELECT * FROM dba_tab_privs WHERE table_name = 'DBMS_LOCK' AND grantee = 'TEST';

.github/workflows/python-package.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ jobs:
145145
with:
146146
app-user: test
147147
app-user-password: test
148+
startup-scripts: ${{ github.workspace }}/.github/scripts
148149

149150
- name: Install the project
150151
env:

0 commit comments

Comments
 (0)