From aa37756c869909f459764e13345cd85eeaaf2526 Mon Sep 17 00:00:00 2001 From: Pradeep Srikakolapu Date: Sun, 24 Nov 2024 22:12:20 -0800 Subject: [PATCH] Testing OIDC --- .github/workflows/integration-tests-azure.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/integration-tests-azure.yml b/.github/workflows/integration-tests-azure.yml index b07795e..81b43b9 100644 --- a/.github/workflows/integration-tests-azure.yml +++ b/.github/workflows/integration-tests-azure.yml @@ -21,8 +21,9 @@ jobs: runs-on: ubuntu-latest permissions: - id-token: write - contents: read + contents: read # Required to access repository files + packages: read # Grant explicit read access to packages + id-token: write # Needed if using OIDC authentication container: image: ghcr.io/${{ github.repository }}:CI-${{ matrix.python_version }}-msodbc${{ matrix.msodbc_version }} steps: @@ -71,7 +72,7 @@ jobs: SQL_COPT_SS_ACCESS_TOKEN = 1256 # This connection option is defined by microsoft in msodbcsql.h connection = pyodbc.connect(connection_string, attrs_before={SQL_COPT_SS_ACCESS_TOKEN: token_struct}) - logging.info("connection strin is: ", connection) + logging.info("connection strin is: ", token_struct) cursor = connection.cursor() cursor.execute("SELECT TOP 10 * FROM dbo.Trip")