This example repository demonstrates how to seamlessly integrate GitHub Actions with JFrog, leveraging OpenID Connect (OIDC) for secure and authenticated interactions. This integration ensures a streamlined and automated workflow for managing artifacts with JFrog Artifactory in your GitHub repositories.
- Introduction
- Prerequisites
- Getting Started
- Workflow Overview
- Configuration
- Secrets
- References
- Contributing
- License
This example illustrates how to set up GitHub Actions workflows to interact with JFrog Artifactory using OpenID Connect (OIDC) for authentication. GitHub Actions provide a powerful and automated way to build, test, and deploy your applications, and integrating JFrog adds efficient artifact management to the process.
Before you begin, make sure you have the following prerequisites:
- A GitHub account
- A JFrog Artifactory account
- OIDC configured in JFrog Artifactory (see documentation)
- Clone this repository:
git clone https://github.com/yourusername/github-actions-jfrog-oidc-example.git
cd github-actions-jfrog-oidc-example
-
Customize the GitHub Actions workflows in the
.github/workflows
directory to suit your project's needs. -
Update the configuration files and scripts as required for your specific use case.
-
Commit your changes and push them to your GitHub repository.
-
Check the Actions tab on your GitHub repository to see the workflow in action.
The workflow in this example includes the following steps:
- Build: Build your project using GitHub Actions.
- Authenticate with JFrog: Authenticate with JFrog Artifactory using OIDC.
- Publish Artifact: Publish the built artifact to JFrog Artifactory.
Adjust the configuration files to match your project structure and requirements:
.github/workflows/main.yml
: GitHub Actions workflow configuration.
These secrets are used to authenticate and interact with JFrog Artifactory securely.
- GitHub Actions Documentation
- JFrog Artifactory OIDC Documentation
- OpenID Connect (OIDC) Documentation
Feel free to contribute to this example by creating issues or pull requests. Your feedback and contributions are highly appreciated!
This example repository is licensed under the MIT License.
Disclaimer: This example is for educational and illustrative purposes. Ensure you adhere to the terms and conditions of GitHub and JFrog when using their services.