Configure OIDC-GitHub Integration with Code Snippets

JFrog Platform Administration Documentation

Content Type
Administration / Platform
ft:sourceType
Paligo

Note

Showing and copying code snippets is currently only available for configuration of OIDC integration with GitHub Actions.

To simplify and streamline the creation of your authentication workflow, you can use OIDC configuration integration with code generation capabilities to obtain code snippets that contain all the Integration parameters and their definitions.

For example, you can add OIDC configuration code to your GitHub Actions workflow file by copying a snippet generated with the JFrog CLI. For more information about using the JFrog CLI, see JFrog CLI. For more information about JFrog CLI setup, see Setup JFrog CLI. For a sample version of the GitHub Actions workflow YAML, see Sample OIDC Integration YAML.

  1. In the OIDC Integration page, after you configure the OIDC integration for GitHub Actions, click Show snippet.

    The generate snippet feature takes the general parameters and generates a snippet that contains the parameter names and values to be added to the GitHub Workflow. There are two snippets available, one for those who use the JFrog CLI and a general code snippet for use with CURL commands.

    For example, to use the JFrog CLI code snippet, select the JFrog CLI tab. The JFrog CLI snippet appears.

    cli-snippet-oidc-01.png
  2. Use the Copy option to add a snippet to your GitHub workflow.

    cli-snippet-oidc-02.png