GitHub Adapter
Connect to Transmute platform from Github with ease by leveraging the GitHub Adapter
Last updated
Connect to Transmute platform from Github with ease by leveraging the GitHub Adapter
Last updated
This page will cover how to install the GitHub Adapter from the Transmute Adapter marketplace which you can find here.
The adapter uses an open source template repository to connection to the Transmute platform with OAuth authentication. The repository can be found here: https://github.com/transmute-industries/template-adapter-github
This section will cover getting up and running with the GitHub adapter, which allows you to issue a credential from a GitHub workflow.
This will take you to the details page for the adapter. Click on the the Install
button. Your browser will automatically download a Github Adapter.zip
file.
You will be shown a modal indicating the application has been created on the Transmute platform. Clicking on Uh, Okay?
will close the modal. Clicking on Let's Go!
will bring you to this documentation.
The next steps will require running commands on the command line. In Windows this means moving the downloaded Github Adapter.zip
file to the Ubuntu file-system. You will also nee do the Github CLI tool gh
installed. You can find instructions for how to install here: https://cli.github.com/manual/installation. You will also need to be logged in with the gh
tool, instructions for how to do that can be found here: https://docs.github.com/en/github-cli/github-cli/quickstart.
Once these steps are complete, you can run the following commands to create a repository that holds the adapter. Note the $
character is to show a command and not the be included in the line to execute.
This will extract a script.sh
and .env
file from the zip.
This will create a new private repository under you Github account named my-project
, which is pre-populated with the settings to be able to run a workflow to issue a credential calling the Transmute platform API. The script will end with opening the browser to the location of this repository.
To run the action to issue a credential, click on the Actions
tab on the top of the repository.
On the actions page, click on the Issue Credential
list item, then click the Run workflow
dropdown. And click on the Run workflow
button to trigger the action to issue the credential.
This will initialize a new action that will have a yellow spinning icon to indicate the workflow is running. Once the action is complete you should see the spinning yellow icon turn into a green check-mark.
Click on the Issue Credential
text to see the details about the action that was run.
You can click on the issued-verifiable-credential
artifact in order to download the credential that you issued. And example of what this should look like is displayed below.
If you want to verify that your credential was issued, you can navigate to your list of credentials in the application to see the credential populated there.
Congratulations on issuing your first credential with a workflow. See what other functionality we can help you unlock with GitHub workflows.