Step 1 - Clone and Own the Example GitHub Project

ARTIFACTORY: OIDC Setup Example

AuthorFullName__c
Patrick Russell
articleNumber
000006129
ft:sourceType
Salesforce
FirstPublishedDate
2024-06-23T07:41:09Z
lastModifiedDate
2024-06-23
VersionNumber
2
We'll be using the JFrog OIDC Integration project for this article. To make commits and to ensure the rest of the steps work, you'll have to make a clone of this project without forking it.

Before proceeding, make sure to save an access token so you can interact with GitHub securely. A token can be generated by clicking on your profile, choosing "Settings" and navigating down to "<> Developer Settings" in the bottom left menu.

User-added image

Now that you have your token, we can clone and create the separate jfrog-github-oidc-example project. First, clone the public repository to a location on your developer environment:
git clone https://github.com/jfrog/jfrog-github-oidc-example.git

Second, delete the ".git" folder that came with the project:
cd jfrog-github-oidc-example; rm -r .git

Third, create the project in your GitHub account and run a "git init" to link the files to the new project:
git init
git add .
git commit -m "First Commit"
git remote add origin git@github.com:username/jfrog-github-oidc-example.git
git remote set-url origin git@github.com:username/jfrog-github-oidc-example.git
git push origin master

Back in the GitHub UI, set a secret called "JF_URL", the value of this is your Artifactory URL with "https://" in the front to specify the protocol:

User-added image