Skip to content

Use OCI Borneo in Github Actions Pipeline #164

Answered by dario-vega
adam-sav asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @adam-sav

Your question is simpler than I understood. Can you try this?

def get_connection(region, comp):
    print("Connecting to the Oracle NoSQL Cloud Service")
    provider = SignatureProvider(
      tenant_id=os.getenv('OCI_TENANCY')
      ,user_id=os.getenv('OCI_USER')
      ,fingerprint=os.getenv('OCI_FINGERPRINT')
      ,private_key=os.getenv('OCI_KEY_CONTENT')
    )
    config = NoSQLHandleConfig(region, provider)
    config.set_default_compartment(comp)
    return(NoSQLHandle(config))

The private_key parameter of SignatureProvider is the path to the private key or the private key content.

In my local env, I have a file called h.pem with the private key, so to have the conte…

Replies: 5 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@adam-sav
Comment options

@dario-vega
Comment options

Answer selected by dario-vega
@adam-sav
Comment options

@dario-vega
Comment options

@dario-vega
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment